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 1, 2026 04:27Victor MerckléVictor MerckléScore: 4,637Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 1, 2026 04:334,60313,575,7472,694,0001,357,0002,146,304stderr
2Sep 1, 2026 04:334,61313,619,6822,859,0001,201,0002,191,360stderr
3Sep 1, 2026 04:334,62213,599,4012,870,0001,198,0002,146,304stderr
4Sep 1, 2026 04:334,62613,662,1512,866,0001,205,0002,191,360stderr
5Sep 1, 2026 04:334,63715,201,9832,374,0001,707,0002,191,360stderr
6Sep 1, 2026 04:334,63913,737,8572,871,0001,212,0002,146,304stderr
7Sep 1, 2026 04:334,64213,981,7252,887,0001,198,0002,146,304stderr
8Sep 1, 2026 04:334,64813,622,9392,880,0001,211,0002,146,304stderr
9Sep 1, 2026 04:334,69013,683,1922,923,0001,205,0002,191,360stderr