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 7, 2026 05:25vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:23M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:2309,264,8521,284,00002,117,632expected "6442459076 ", got "1 "stderr
2May 17, 2026 05:2309,397,0531,190,00002,117,632expected "6442459076 ", got "1 "stderr
3May 17, 2026 05:2309,540,0371,198,00002,117,632expected "6442459076 ", got "1 "stderr
4Feb 7, 2026 04:283,33422,358,446978,0001,956,0002,490,368
5Feb 7, 2026 04:283,34424,807,399981,0001,962,0002,502,656
6Feb 7, 2026 04:283,34921,402,818982,0001,965,0002,494,464
7Feb 7, 2026 04:283,35222,050,162983,0001,967,0002,498,560
8Feb 7, 2026 04:283,38020,786,619991,0001,983,0002,498,560
9Feb 7, 2026 04:283,39217,165,162995,0001,990,0002,277,376
10Feb 7, 2026 04:283,39523,466,021996,0001,992,0002,502,656
11Feb 7, 2026 04:283,39520,615,806996,0001,992,0002,490,368
12Feb 7, 2026 04:283,39925,878,992997,0001,994,0002,490,368
13Feb 7, 2026 04:283,40220,685,382998,0001,996,0002,498,560
14Feb 7, 2026 04:283,40322,101,662998,0001,997,0002,494,464
15Feb 7, 2026 04:283,40914,355,0781,000,0002,000,0002,498,560
16Feb 7, 2026 05:253,41721,207,3021,002,0002,005,0002,277,376
17Feb 7, 2026 05:253,42621,254,1651,005,0002,010,0002,277,376
18Feb 7, 2026 05:253,47725,607,0851,020,0002,040,0002,277,376