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 08:43Victor 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:02031,093,99821,612,00002,113,536expected "20772186276489 ", got "16236743751850 "
2Oct 31, 2026 15:02027,200,11917,711,00002,113,536expected "40088704514856 ", got "30967979895959 "
3Oct 31, 2026 15:02027,702,35318,703,00002,113,536expected "40090359640345 ", got "31302962644544 "
4Jun 6, 2026 08:457,72014,193,5156,794,00002,113,536
5Jun 6, 2026 08:457,73914,223,1756,811,00002,113,536
6Jun 6, 2026 08:457,74714,285,3076,818,00002,113,536
7Jun 6, 2026 08:457,76314,230,3866,832,00002,113,536
8Jun 6, 2026 08:457,76714,257,6266,835,00002,113,536
9Jun 6, 2026 08:457,82014,266,8626,882,00002,113,536
10Jun 6, 2026 08:457,82314,256,1526,885,00002,113,536
11Jun 6, 2026 08:457,85914,575,2496,916,00002,113,536
12Jun 6, 2026 08:457,86914,289,0186,925,00002,113,536