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 17, 2026 18:29Josu San MartinJosu San MartinScore: 12,987Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 18:3212,84421,842,06110,189,0001,114,0002,121,728
2May 17, 2026 18:3212,87822,477,87710,219,0001,114,0002,121,728
3May 17, 2026 18:3212,88220,418,24510,222,0001,115,0002,121,728
4May 17, 2026 18:3212,93520,573,51810,260,0001,123,0002,121,728
5May 17, 2026 18:3212,98721,333,57010,288,0001,141,0002,121,728
6May 17, 2026 18:3213,01221,962,15510,324,0001,127,0002,121,728
7May 17, 2026 18:3213,01420,477,01410,405,0001,048,0002,121,728
8May 17, 2026 18:3213,02221,687,92310,412,0001,048,0002,121,728
9May 17, 2026 18:3213,19423,590,55510,550,0001,061,0002,121,728