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 06:18Victor 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:09030,086,36120,934,00002,113,536expected "20578784071893 ", got "16523151802280 "
2Oct 31, 2026 15:09027,641,02818,601,00002,113,536expected "40167332241869 ", got "31080480458984 "
3Oct 31, 2026 15:09029,468,50820,372,00002,113,536expected "20655106378947 ", got "16340794542502 "
4Jun 23, 2026 06:215,75112,563,9505,061,00002,113,536
5Jun 23, 2026 06:215,79013,275,1265,096,00002,113,536
6Jun 23, 2026 06:215,80512,559,6595,109,00002,113,536
7Jun 23, 2026 06:215,85312,893,7635,151,00002,113,536
8Jun 23, 2026 06:215,86812,693,7495,164,00002,113,536
9Jun 23, 2026 06:215,87112,996,2745,167,00002,113,536
10Jun 23, 2026 06:215,89412,935,4295,187,00002,113,536
11Jun 23, 2026 06:215,91812,981,7255,208,00002,113,536
12Jun 23, 2026 06:215,92612,736,3995,215,00002,113,536