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 8, 2026 21:24Victor 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:01038,613,55629,530,00002,113,536expected "23341293411825 ", got "19146005057509 "
2Oct 31, 2026 15:01027,292,87118,244,00002,113,536expected "39927655461243 ", got "31181004657667 "
3Oct 31, 2026 15:01027,624,21318,561,00002,113,536expected "40064275878043 ", got "30835204050631 "
4Jun 8, 2026 21:287,44014,146,0286,548,00002,113,536
5Jun 8, 2026 21:287,47514,109,4936,578,00002,113,536
6Jun 8, 2026 21:287,53414,362,9046,630,00002,113,536
7Jun 8, 2026 21:287,54614,207,8496,641,00002,113,536
8Jun 8, 2026 21:287,54714,637,3456,642,00002,113,536
9Jun 8, 2026 21:287,55114,277,1736,645,00002,113,536
10Jun 8, 2026 21:287,55214,374,1276,646,00002,113,536
11Jun 8, 2026 21:287,56714,365,8936,659,00002,113,536
12Jun 8, 2026 21:287,84814,502,3066,907,00002,113,536