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 06:36Victor 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 14:55030,563,98021,556,00002,113,536expected "20645756816915 ", got "16337269339180 "
2Oct 31, 2026 14:55027,703,51318,662,00002,113,536expected "40019707020633 ", got "31143466877946 "
3Oct 31, 2026 14:55040,186,73330,676,00002,113,536expected "23408043907562 ", got "19014500321259 "
4Jun 6, 2026 06:399,31415,647,7598,197,00002,113,536
5Jun 6, 2026 06:399,32315,721,3748,205,00002,113,536
6Jun 6, 2026 06:399,36015,670,4948,237,00002,113,536
7Jun 6, 2026 06:399,36315,735,5028,240,00002,113,536
8Jun 6, 2026 06:399,37215,665,9708,248,00002,113,536
9Jun 6, 2026 06:399,39015,655,1278,264,00002,113,536
10Jun 6, 2026 06:399,42215,665,3798,292,00002,113,536
11Jun 6, 2026 06:399,45416,095,0188,320,00002,113,536
12Jun 6, 2026 06:399,52616,014,5998,383,00002,113,536