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 23, 2026 21:39Pavel SkripkinPavel SkripkinScore: 184,390Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 23, 2026 21:40183,886176,466,662159,823,0001,997,0002,314,240
2Apr 23, 2026 21:40184,214180,716,648160,108,0002,001,0002,433,024
3Apr 23, 2026 21:40184,264179,233,163160,152,0002,001,0002,437,120
4Apr 23, 2026 21:40184,350183,619,410161,227,0001,001,0002,326,528
5Apr 23, 2026 21:40184,390179,117,874161,263,0001,001,0002,330,624
6Apr 23, 2026 21:40184,397174,037,696161,269,0001,001,0002,330,624
7Apr 23, 2026 21:40184,476177,359,469161,337,0001,002,0002,433,024
8Apr 23, 2026 21:40184,853176,214,002161,667,0001,004,0002,428,928
9Apr 23, 2026 21:40185,051177,053,700160,847,0001,998,0002,437,120