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 27, 2026 14:17Victor 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:08038,417,99629,511,00002,113,536expected "23470286911764 ", got "18895970202718 "
2Oct 31, 2026 15:08031,477,67522,482,00002,113,536expected "20891001550789 ", got "15869852028513 "
3Oct 31, 2026 15:08027,522,33318,581,00002,113,536expected "39955898364102 ", got "31160767226310 "
4Jun 27, 2026 14:195,12611,869,7684,511,00002,113,536
5Jun 27, 2026 14:195,22611,925,0874,599,00002,113,536
6Jun 27, 2026 14:195,22912,093,6814,602,00002,113,536
7Jun 27, 2026 14:195,23611,980,0494,608,00002,113,536
8Jun 27, 2026 14:195,24312,103,3034,614,00002,113,536
9Jun 27, 2026 14:195,27713,460,8354,644,00002,113,536
10Jun 27, 2026 14:195,29612,066,2644,661,00002,113,536
11Jun 27, 2026 14:195,30411,985,9714,668,00002,113,536
12Jun 27, 2026 14:195,60212,242,1794,930,00002,113,536