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

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:13M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:13010,354,1391,066,00002,113,536expected "6442459076 ", got "2305422578 "
2May 17, 2026 05:1308,242,9061,066,00002,113,536expected "6442459076 ", got "2305422578 "
3May 17, 2026 05:1308,299,4511,067,00002,113,536expected "6442459076 ", got "2305422578 "
4Mar 8, 2026 16:382,99918,991,7432,639,00002,445,312
5Mar 8, 2026 16:383,02619,132,5882,663,00002,531,328
6Mar 8, 2026 16:383,02819,784,7182,665,00002,445,312
7Mar 8, 2026 16:383,02824,145,6622,665,00002,445,312
8Mar 8, 2026 16:383,05719,093,9412,690,00002,441,216
9Mar 8, 2026 16:383,13620,928,5602,760,00002,441,216
10Mar 8, 2026 16:383,13619,904,8772,760,00002,445,312
11Mar 8, 2026 16:383,16516,605,3042,785,00002,445,312
12Mar 8, 2026 16:383,16615,821,2542,786,00002,527,232
13Mar 8, 2026 16:383,16724,340,5822,787,00002,437,120
14Mar 8, 2026 16:383,17015,599,7752,790,00002,441,216
15Mar 8, 2026 16:383,31722,262,2161,946,000973,0002,445,312
16Mar 8, 2026 16:383,33522,202,5761,957,000978,0002,449,408
17Mar 8, 2026 16:383,43120,910,2062,013,0001,006,0002,441,216
18Mar 8, 2026 16:383,47519,418,8592,039,0001,019,0002,269,184
19Mar 8, 2026 16:383,55017,781,2802,083,0001,041,0002,433,024
20Mar 8, 2026 16:383,56719,675,2572,093,0001,046,0002,531,328
21Mar 8, 2026 16:383,69717,412,7632,169,0001,084,0002,433,024