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 listApr 22, 2026 11:01Pavel SkripkinPavel SkripkinScore: 239,518Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 22, 2026 11:02237,812227,235,264208,274,0001,001,0002,420,736
2Apr 22, 2026 11:02238,288226,995,122207,697,0001,997,0002,424,832
3Apr 22, 2026 11:02238,575224,349,059207,947,0001,999,0002,428,928
4Apr 22, 2026 11:02239,193226,025,993209,488,0001,002,0002,437,120
5Apr 22, 2026 11:02239,518231,946,809208,779,0001,997,0002,420,736
6Apr 22, 2026 11:02239,892224,329,943210,105,0001,000,0002,433,024
7Apr 22, 2026 11:02240,110229,335,149210,296,0001,001,0002,424,832
8Apr 22, 2026 11:02240,923227,516,670210,013,0002,000,0002,433,024
9Apr 22, 2026 11:02241,775229,489,953210,765,0001,997,0002,416,640