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 listMar 18, 2026 09:34limanjun99limanjun99Error
Source Code

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

Challenge History
DateChallengerCostTypeStatus
Oct 5, 2026 20:59Andrew Epstein10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 5, 2026 21:04031,606,15020,100,0001,069,0002,113,536expected "40294451653269 ", got "14342778294451"
2Oct 5, 2026 21:04035,423,40723,902,0001,069,0002,113,536expected "20844883875137 ", got "7662453629696"
3Oct 5, 2026 21:04048,733,26337,245,0001,073,0002,113,536expected "23606852312511 ", got "10652724166494"
4Mar 18, 2026 09:3470,93187,896,75161,413,0001,006,0002,289,664
5Mar 18, 2026 09:3471,05283,691,62161,518,0001,008,0002,269,184
6Mar 18, 2026 09:3471,07484,366,99761,537,0001,008,0002,289,664
7Mar 18, 2026 09:3471,07786,930,55361,540,0001,008,0002,289,664
8Mar 18, 2026 09:3471,08990,032,17961,549,0001,009,0002,273,280
9Mar 18, 2026 09:3471,09885,754,15761,557,0001,009,0002,289,664
10Mar 18, 2026 09:3471,10188,414,99662,569,00002,281,472
11Mar 18, 2026 09:3471,10588,127,63161,563,0001,009,0002,289,664
12Mar 18, 2026 09:3471,17483,378,42761,623,0001,010,0002,281,472