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 listSep 2, 2026 16:39Victor MerckléVictor MerckléScore: 2,795Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 2, 2026 16:412,78611,417,4752,452,000024,576stderr
2Sep 2, 2026 16:412,78911,813,2472,455,000024,576stderr
3Sep 2, 2026 16:412,79211,199,7332,457,000024,576stderr
4Sep 2, 2026 16:412,79210,842,8552,457,000024,576stderr
5Sep 2, 2026 16:412,79510,656,3632,460,000024,576stderr
6Sep 2, 2026 16:412,79611,197,7802,461,000024,576stderr
7Sep 2, 2026 16:412,80510,618,3822,469,000024,576stderr
8Sep 2, 2026 16:412,81210,625,3872,475,000024,576stderr
9Sep 2, 2026 16:412,81811,276,1372,480,000024,576stderr