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 listJun 10, 2026 18:16Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 23:09Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 00:390156,802,848147,178,0001,253,0002,138,112expected "28636218224070 ", got "23546683676635 "
2Sep 5, 2026 00:390162,671,143153,138,0001,010,0002,138,112expected "24717323762541 ", got "21854726879402 "
3Sep 5, 2026 00:390151,983,308141,807,0001,270,0002,138,112expected "29987602423431 ", got "25310509237288 "
4Jun 10, 2026 18:198,54817,885,4286,235,0001,288,0002,142,208
5Jun 10, 2026 18:198,56016,201,0936,366,0001,167,0002,142,208
6Jun 10, 2026 18:198,59216,957,2396,418,0001,143,0002,142,208
7Jun 10, 2026 18:198,59516,246,6816,404,0001,160,0002,142,208
8Jun 10, 2026 18:198,66817,025,3236,388,0001,240,0002,142,208
9Jun 10, 2026 18:198,68417,152,0616,250,0001,392,0002,142,208
10Jun 10, 2026 18:198,68616,517,5756,343,0001,301,0002,142,208
11Jun 10, 2026 18:198,70415,088,4976,338,0001,322,0002,142,208
12Jun 10, 2026 18:198,74616,873,5666,485,0001,212,0002,142,208