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 10, 2026 13:56zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 06:43M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 06:43010,097,3641,011,00002,113,536expected "6442459076 ", got "2305422782 "
2May 17, 2026 06:43010,134,9191,002,00002,113,536expected "6442459076 ", got "2305422782 "
3May 17, 2026 06:4308,434,9231,087,00002,113,536expected "6442459076 ", got "2305422782 "
4Feb 10, 2026 13:573,31820,989,0432,920,00002,412,544
5Feb 10, 2026 13:563,41322,922,4312,002,0001,001,0002,404,352
6Feb 10, 2026 13:573,43421,549,0932,015,0001,007,0002,535,424
7Feb 10, 2026 13:563,44119,627,9482,019,0001,009,0002,510,848
8Feb 10, 2026 13:573,44823,887,8291,011,0002,023,0002,404,352
9Feb 10, 2026 13:564,16824,701,8613,668,00002,535,424