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 listMay 16, 2026 18:03olliecrowolliecrowError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:26M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:27014,200,8324,446,0001,201,0002,138,112expected "6442459076 ", got "2147490262 "
2May 17, 2026 07:27014,486,3604,434,0001,141,0002,138,112expected "6442459076 ", got "2147490262 "
3May 17, 2026 07:27014,226,5014,420,0001,174,0002,138,112expected "6442459076 ", got "2147490262 "
4May 16, 2026 18:0810,61918,535,8268,238,0001,107,0002,138,112
5May 16, 2026 18:0810,71817,956,2098,321,0001,111,0002,134,016
6May 16, 2026 18:0810,73917,857,6538,311,0001,140,0002,138,112
7May 16, 2026 18:0810,75918,113,7758,306,0001,162,0002,121,728
8May 16, 2026 18:0810,77818,305,0278,333,0001,152,0002,125,824
9May 16, 2026 18:0810,77818,667,2168,336,0001,149,0002,125,824
10May 16, 2026 18:0810,79418,068,6198,339,0001,160,0002,138,112
11May 16, 2026 18:0810,80418,081,3458,340,0001,168,0002,121,728
12May 16, 2026 18:0810,83019,727,4868,381,0001,150,0002,125,824