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 30, 2026 06:48olliecrowolliecrowScore: 43,060Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2026 06:4942,84752,349,02236,687,0001,019,0002,330,624stderr
2Apr 30, 2026 06:4942,89254,490,17436,725,0001,020,0002,363,392stderr
3Apr 30, 2026 06:4942,93157,242,59736,759,0001,021,0002,330,624stderr
4Apr 30, 2026 06:4943,04558,893,84835,887,0001,993,0002,371,584stderr
5Apr 30, 2026 06:4943,06058,485,65736,869,0001,024,0002,375,680stderr
6Apr 30, 2026 06:4943,07755,035,82635,913,0001,995,0002,330,624stderr
7Apr 30, 2026 06:4943,09654,198,67235,929,0001,996,0002,330,624stderr
8Apr 30, 2026 06:4943,10457,413,30435,936,0001,996,0002,433,024stderr
9Apr 30, 2026 06:4943,11160,403,05935,942,0001,996,0002,330,624stderr