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 listFeb 14, 2026 21:18olliecrowolliecrowError
Source Code

Source code access is restricted. Log in to request access.

Challenge History
DateChallengerCostTypeStatus
Oct 5, 2026 20:55Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 5, 2026 20:59031,577,91522,821,00002,113,536expected "23391023609042 ", got "18990133052973 "
2Oct 5, 2026 20:59033,189,02124,414,00002,113,536expected "23628634424895 ", got "18592352954619 "
3Oct 5, 2026 20:59022,512,44813,691,00002,113,536expected "40010916091860 ", got "31379863288763 "
4Feb 14, 2026 21:1821,49749,210,41518,917,00002,408,448
5Feb 14, 2026 21:1821,58837,444,24917,998,000999,0002,523,136
6Feb 14, 2026 21:1821,59441,520,42318,003,0001,000,0002,514,944
7Feb 14, 2026 21:1821,59845,904,04417,006,0002,000,0002,523,136
8Feb 14, 2026 21:1821,61345,142,35518,018,0001,001,0002,523,136
9Feb 14, 2026 21:1821,62036,604,51918,025,0001,001,0002,514,944
10Feb 14, 2026 21:1821,62646,601,28718,030,0001,001,0002,265,088
11Feb 14, 2026 21:1821,63940,864,73918,040,0001,002,0002,351,104
12Feb 14, 2026 21:1821,66740,199,08318,064,0001,003,0002,514,944