Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

Input: 1 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Back to listJan 30, 2026 20:47vahookvahookScore: 4,650Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 30, 2026 20:464,60520,171,8572,026,0002,026,0002,490,368
2Jan 30, 2026 20:464,63222,107,8162,038,0002,038,0002,490,368
3Jan 30, 2026 20:474,63623,739,5152,040,0002,040,0002,482,176
4Jan 30, 2026 20:464,65024,665,2142,046,0002,046,0002,486,272
5Jan 30, 2026 20:474,65023,275,7552,046,0002,046,0002,527,232
6Jan 30, 2026 20:474,65924,788,0492,050,0002,050,0002,486,272