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:57Josu San MartinJosu San MartinScore: 28,244Success
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 01:0228,04033,793,45722,678,0001,998,0002,113,536
2May 22, 2026 01:0228,08035,555,87622,724,0001,987,0002,113,536
3May 22, 2026 01:0228,11336,193,98622,720,0002,020,0002,113,536
4May 22, 2026 01:0228,13536,080,29822,762,0001,997,0002,113,536
5May 22, 2026 01:0228,24435,918,38922,849,0002,006,0002,113,536
6May 22, 2026 01:0228,25336,563,82822,853,0002,010,0002,113,536
7May 22, 2026 01:0228,36436,419,49722,832,0002,129,0002,113,536
8May 22, 2026 01:0228,38236,366,13622,971,0002,006,0002,113,536
9May 22, 2026 01:0228,45536,731,47322,809,0002,232,0002,113,536