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

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 14:37Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 14:45038,859,36829,379,00002,113,536expected "23701006611777 ", got "18625526284727 "
2Oct 31, 2026 14:45037,216,01328,048,00002,113,536expected "23498724521131 ", got "19033599761028 "
3Oct 31, 2026 14:45037,663,92828,636,00002,113,536expected "23496175447722 ", got "18825610764650 "
4Jun 6, 2026 09:307,54714,062,8466,642,00002,113,536
5Jun 6, 2026 09:307,56914,062,6966,661,00002,113,536
6Jun 6, 2026 09:307,57214,129,8866,664,00002,113,536
7Jun 6, 2026 09:307,57614,069,4996,667,00002,113,536
8Jun 6, 2026 09:307,57614,094,7676,667,00002,113,536
9Jun 6, 2026 09:307,57714,135,1546,668,00002,113,536
10Jun 6, 2026 09:307,58014,103,3536,671,00002,113,536
11Jun 6, 2026 09:307,62614,202,0706,711,00002,113,536
12Jun 6, 2026 09:307,99214,400,1677,033,00002,113,536