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 23, 2026 09:27Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 5, 2026 05:56Tomislav Tunkovic10.16CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 06:200155,968,783147,602,00002,113,536expected "27912080106209 ", got "24044290563540 "
2Sep 5, 2026 06:200160,711,320151,111,00002,113,536expected "26642355797857 ", got "23067332874529 "
3Sep 5, 2026 06:200164,609,352155,694,00002,113,536expected "28269168335268 ", got "23559346606521 "
4Jun 23, 2026 09:295,35012,187,9814,708,00002,113,536
5Jun 23, 2026 09:295,38612,287,8134,740,00002,113,536
6Jun 23, 2026 09:295,43012,371,2474,779,00002,113,536
7Jun 23, 2026 09:295,47512,662,6594,818,00002,113,536
8Jun 23, 2026 09:295,47912,290,7524,822,00002,113,536
9Jun 23, 2026 09:295,48912,470,5094,831,00002,113,536
10Jun 23, 2026 09:295,53612,686,5444,872,00002,113,536
11Jun 23, 2026 09:295,57812,743,5964,909,00002,113,536
12Jun 23, 2026 09:295,81412,636,4475,117,00002,113,536