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 19, 2026 03:29Josu San MartinJosu San MartinScore: 13,032Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 19, 2026 03:3112,93023,422,81210,287,0001,092,0002,138,112
2May 19, 2026 03:3112,98022,654,40610,322,0001,101,0002,138,112
3May 19, 2026 03:3112,98922,292,83610,310,0001,121,0002,138,112
4May 19, 2026 03:3113,02122,582,34710,344,0001,115,0002,142,208
5May 19, 2026 03:3113,03220,802,46610,340,0001,129,0002,142,208
6May 19, 2026 03:3113,10522,557,20610,411,0001,122,0002,138,112
7May 19, 2026 03:3113,11023,468,11810,470,0001,067,0002,138,112
8May 19, 2026 03:3113,13723,701,38610,413,0001,148,0002,138,112
9May 19, 2026 03:3113,15920,778,11610,423,0001,157,0002,142,208