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 20, 2026 14:52Johan SannemoJohan SannemoScore: 9,980Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 20, 2026 14:529,91424,880,6437,634,0001,090,0002,289,664
2Jan 20, 2026 14:529,92230,058,3948,731,00002,289,664
3Jan 20, 2026 14:529,93428,211,3116,557,0002,185,0002,285,568
4Jan 20, 2026 14:529,95630,984,8427,666,0001,095,0002,502,656
5Jan 20, 2026 14:529,98025,711,0048,782,00002,289,664
6Jan 20, 2026 14:529,98528,203,2427,689,0001,098,0002,285,568
7Jan 20, 2026 14:5210,12231,130,2476,928,0001,979,0002,510,848
8Jan 20, 2026 14:5210,14223,827,6235,950,0002,975,0002,486,272
9Jan 20, 2026 14:5210,22828,479,5187,001,0002,000,0002,510,848