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 10:12Josu San MartinJosu San MartinScore: 11,604Success
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 10:1411,10421,077,1778,766,0001,006,0002,117,632
2May 19, 2026 10:1411,26019,167,0948,824,0001,085,0002,113,536
3May 19, 2026 10:1411,37820,497,6478,988,0001,025,0002,117,632
4May 19, 2026 10:1411,38420,257,7608,988,0001,030,0002,117,632
5May 19, 2026 10:1411,60419,535,9499,131,0001,081,0002,117,632
6May 19, 2026 10:1411,75520,754,5509,310,0001,035,0002,113,536
7May 19, 2026 10:1412,08221,089,7179,563,0001,070,0002,117,632
8May 19, 2026 10:1412,42820,010,1129,932,0001,005,0002,117,632
9May 19, 2026 10:1413,51021,535,29710,882,0001,007,0002,117,632