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 03:15zielajzielajError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:14M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:14010,835,4101,080,00002,113,536expected "6442459076 ", got "2305422578 "
2May 17, 2026 05:1409,449,7801,073,00002,113,536expected "6442459076 ", got "2305422578 "
3May 17, 2026 05:14010,928,993930,00002,113,536expected "6442459076 ", got "2305422578 "
4Mar 8, 2026 03:153,01720,711,9002,655,00002,437,120
5Mar 8, 2026 03:163,03418,467,2342,670,00002,445,312
6Mar 8, 2026 03:153,04518,259,5472,680,00002,437,120
7Mar 8, 2026 03:153,05621,006,8002,689,00002,445,312
8Mar 8, 2026 03:153,07522,434,1182,706,00002,441,216
9Mar 8, 2026 03:153,08524,349,4762,715,00002,531,328
10Mar 8, 2026 03:153,08616,074,7582,716,00002,445,312
11Mar 8, 2026 03:153,17418,018,9162,793,00002,437,120
12Mar 8, 2026 03:163,18021,491,2042,798,00002,428,928
13Mar 8, 2026 03:163,18118,565,2722,799,00002,441,216
14Mar 8, 2026 03:163,31417,359,5301,944,000972,0002,527,232
15Mar 8, 2026 03:153,32219,921,4511,949,000974,0002,531,328
16Mar 8, 2026 03:153,56920,385,3002,094,0001,047,0002,531,328
17Mar 8, 2026 03:153,59720,335,9622,110,0001,055,0002,437,120
18Mar 8, 2026 03:153,60016,866,5132,112,0001,056,0002,441,216
19Mar 8, 2026 03:163,63117,788,5022,130,0001,065,0002,445,312
20Mar 8, 2026 03:153,67216,546,6723,231,00002,531,328
21Mar 8, 2026 03:163,78316,876,2053,329,00002,441,216