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 13, 2026 04:38Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Sep 4, 2026 23:13Tomislav Tunkovic10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 5, 2026 00:460105,844,42497,584,00002,113,536expected "28144882208549 ", got "24807736738467 "
2Sep 5, 2026 00:460107,417,38699,217,00002,113,536expected "27852945811791 ", got "24472610759714 "
3Sep 5, 2026 00:460107,446,99999,175,00002,113,536expected "28351763381080 ", got "24190416934001 "
4Jun 13, 2026 04:477,77314,161,9856,841,00002,113,536
5Jun 13, 2026 04:477,78414,247,5946,850,00002,113,536
6Jun 13, 2026 04:477,79714,244,8696,862,00002,113,536
7Jun 13, 2026 04:477,81014,242,6656,873,00002,113,536
8Jun 13, 2026 04:477,81714,176,6866,879,00002,113,536
9Jun 13, 2026 04:477,82714,250,3436,888,00002,113,536
10Jun 13, 2026 04:477,85614,219,6566,914,00002,113,536
11Jun 13, 2026 04:477,85914,275,5556,916,00002,113,536
12Jun 13, 2026 04:477,88914,320,4156,943,00002,113,536