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 15, 2026 17:31Victor MerckléVictor MerckléError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 31, 2026 14:50Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 31, 2026 15:11026,864,14818,059,00002,113,536expected "39977802897563 ", got "30766526989501 "
2Oct 31, 2026 15:11028,903,08218,465,00002,113,536expected "40102127915348 ", got "31133453945550 "
3Oct 31, 2026 15:11030,174,26921,305,00002,113,536expected "20620998284276 ", got "16165753607605 "
4Jun 15, 2026 17:337,08513,315,2746,235,00002,113,536
5Jun 15, 2026 17:337,16813,523,3016,308,00002,113,536
6Jun 15, 2026 17:337,18613,507,6286,324,00002,113,536
7Jun 15, 2026 17:337,18813,360,1806,326,00002,113,536
8Jun 15, 2026 17:337,19613,400,1746,333,00002,113,536
9Jun 15, 2026 17:337,19813,372,6756,335,00002,113,536
10Jun 15, 2026 17:337,28713,587,8826,413,00002,113,536
11Jun 15, 2026 17:337,36313,628,8086,480,00002,113,536
12Jun 15, 2026 17:337,49413,780,1046,595,00002,113,536