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 listMay 19, 2026 06:32Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 23:19Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 00:520276,788,471268,647,00002,113,536expected "28019956762266 ", got "28045677016274 "
2Sep 5, 2026 00:520269,485,494261,265,00002,113,536expected "28628041354615 ", got "28660191672125 "
3Sep 5, 2026 00:520272,015,391263,870,00002,113,536expected "28221415389743 ", got "28234275516747 "
4May 19, 2026 06:369,50516,071,0178,365,00002,113,536
5May 19, 2026 06:369,52515,947,4688,382,00002,113,536
6May 19, 2026 06:369,52817,626,6378,385,00002,113,536
7May 19, 2026 06:369,53916,410,6118,395,00002,113,536
8May 19, 2026 06:369,55917,729,5928,412,00002,113,536
9May 19, 2026 06:369,56217,586,7428,415,00002,113,536
10May 19, 2026 06:369,61117,725,5228,458,00002,113,536
11May 19, 2026 06:369,61315,887,4828,460,00002,113,536
12May 19, 2026 06:369,67316,060,8598,513,00002,113,536