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 listMay 20, 2026 19:19Josu San MartinJosu San MartinScore: 11,978Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 20, 2026 19:2211,92821,882,3169,411,0001,086,0002,142,208
2May 20, 2026 19:2211,93820,804,5869,420,0001,086,0002,142,208
3May 20, 2026 19:2211,95121,721,8149,418,0001,099,0002,138,112
4May 20, 2026 19:2211,95621,362,9409,433,0001,089,0002,142,208
5May 20, 2026 19:2211,97821,368,2109,436,0001,105,0002,138,112
6May 20, 2026 19:2211,98121,805,0469,454,0001,090,0002,142,208
7May 20, 2026 19:2212,00221,671,9319,451,0001,111,0002,142,208
8May 20, 2026 19:2212,00420,053,3479,464,0001,100,0002,138,112
9May 20, 2026 19:2212,13120,434,4949,534,0001,142,0002,138,112