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 3, 2026 01:22Victor MerckléVictor MerckléScore: 62,776Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 3, 2026 01:2562,40663,238,48153,780,0001,138,00024,576stderr
2Sep 3, 2026 01:2562,46263,260,42153,841,0001,126,00024,576stderr
3Sep 3, 2026 01:2562,52363,872,15753,881,0001,140,00024,576stderr
4Sep 3, 2026 01:2562,54363,891,69553,923,0001,115,00024,576stderr
5Sep 3, 2026 01:2562,77666,030,64554,117,0001,126,00024,576stderr
6Sep 3, 2026 01:2562,78064,045,77354,120,0001,127,00024,576stderr
7Sep 3, 2026 01:2562,79263,491,26454,132,0001,125,00024,576stderr
8Sep 3, 2026 01:2562,81963,428,91554,150,0001,131,00024,576stderr
9Sep 3, 2026 01:2562,82164,159,15954,277,0001,006,00024,576stderr