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 listAug 1, 2026 03:05Warren FuWarren FuScore: 127,398Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 1, 2026 03:08126,932121,667,743110,693,0001,008,0002,113,536
2Aug 1, 2026 03:08127,214121,950,267110,943,0001,006,0002,113,536
3Aug 1, 2026 03:08127,255126,343,624110,979,0001,006,0002,117,632
4Aug 1, 2026 03:08127,376121,942,014111,084,0001,007,0002,113,536
5Aug 1, 2026 03:08127,398126,713,011111,100,0001,011,0002,113,536
6Aug 1, 2026 03:08127,554122,812,829111,236,0001,012,0002,113,536
7Aug 1, 2026 03:08127,598122,387,641111,275,0001,012,0002,113,536
8Aug 1, 2026 03:08127,747122,443,405111,408,0001,010,0002,113,536
9Aug 1, 2026 03:08128,105123,440,405111,723,0001,010,0002,113,536