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 22, 2026 00:15Josu San MartinJosu San MartinScore: 10,714Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 22, 2026 00:1810,64520,737,7118,260,0001,108,0002,117,632
2May 22, 2026 00:1810,65420,334,5858,277,0001,099,0002,117,632
3May 22, 2026 00:1810,68220,773,2228,288,0001,113,0002,117,632
4May 22, 2026 00:1810,68919,392,6418,296,0001,111,0002,113,536
5May 22, 2026 00:1810,71420,749,9328,318,0001,111,0002,117,632
6May 22, 2026 00:1810,71719,344,5298,321,0001,110,0002,117,632
7May 22, 2026 00:1810,77019,516,8118,362,0001,116,0002,113,536
8May 22, 2026 00:1810,87719,519,9318,325,0001,247,0002,113,536
9May 22, 2026 00:1810,93821,790,1268,573,0001,053,0002,117,632