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 listJan 24, 2026 20:35zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 08:35M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 08:3608,989,6901,120,00002,113,536expected "6442459076 ", got "2305422578 "
2May 17, 2026 08:3608,661,7561,110,00002,113,536expected "6442459076 ", got "2305422578 "
3May 17, 2026 08:3608,887,7381,641,00002,113,536expected "6442459076 ", got "2305422578 "
4Jan 24, 2026 20:363,37820,096,7611,982,000991,0002,355,200
5Jan 24, 2026 20:353,43621,563,0481,008,0002,016,0002,277,376
6Jan 24, 2026 20:363,49220,506,6122,049,0001,024,0002,535,424
7Jan 24, 2026 20:363,55717,063,7311,043,0002,087,0002,277,376
8Jan 24, 2026 20:354,21723,047,2613,711,00002,351,104
9Jan 24, 2026 20:354,26019,444,6163,749,00002,351,104