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 20, 2026 19:26Pavel SkripkinPavel SkripkinScore: 911,942Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 19:27903,798812,431,909794,343,0001,000,0002,281,472
2Apr 20, 2026 19:27904,930813,555,642795,339,0001,000,0002,289,664
3Apr 20, 2026 19:27909,906828,171,016798,719,0001,999,0002,293,760
4Apr 20, 2026 19:27911,011831,625,005799,691,0001,999,0002,273,280
5Apr 20, 2026 19:27911,942816,631,164800,511,0001,998,0002,281,472
6Apr 20, 2026 19:27912,101839,250,842801,650,000999,0002,293,760
7Apr 20, 2026 19:27914,811830,530,523804,034,0001,000,0002,289,664
8Apr 20, 2026 19:27918,560836,539,717806,335,0001,998,0002,281,472
9Apr 20, 2026 19:27924,490841,578,473811,554,0001,998,0002,301,952