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 22, 2026 16:38zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:17M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:17011,711,4201,115,00002,113,536expected "6442459076 ", got "2305422648 "
2May 17, 2026 05:1709,333,5801,116,00002,113,536expected "6442459076 ", got "2305422648 "
3May 17, 2026 05:1708,632,0891,037,00002,113,536expected "6442459076 ", got "2305422648 "
4Feb 22, 2026 16:383,12218,947,2072,747,00002,420,736
5Feb 22, 2026 16:383,14019,609,1012,763,00002,535,424
6Feb 22, 2026 16:383,14221,612,0062,765,00002,420,736
7Feb 22, 2026 16:383,30718,845,4541,940,000970,0002,535,424
8Feb 22, 2026 16:383,31426,261,1961,944,000972,0002,514,944
9Feb 22, 2026 16:383,31420,839,3742,916,00002,433,024
10Feb 22, 2026 16:383,32218,416,4601,949,000974,0002,420,736
11Feb 22, 2026 16:383,32519,977,0351,951,000975,0002,433,024
12Feb 22, 2026 16:383,33416,644,6701,956,000978,0002,424,832
13Feb 22, 2026 16:383,34518,248,2841,963,000981,0002,420,736
14Feb 22, 2026 16:383,36816,186,604988,0001,976,0002,420,736
15Feb 22, 2026 16:383,49224,101,1202,049,0001,024,0002,277,376