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 7, 2026 01:17olliecrowolliecrowError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 07:44M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 07:45014,704,3844,334,00002,113,536expected "6442459076 ", got "2147490262 "
2May 17, 2026 07:45012,510,3614,373,00002,113,536expected "6442459076 ", got "2147490262 "
3May 17, 2026 07:45011,691,8324,356,00002,113,536expected "6442459076 ", got "2147490262 "
4May 7, 2026 01:1911,53422,589,40710,150,00002,547,712
5May 7, 2026 01:1911,53522,270,59010,151,00002,551,808
6May 7, 2026 01:1911,53825,487,96210,154,00002,547,712
7May 7, 2026 01:1911,54825,203,48110,163,00002,551,808
8May 7, 2026 01:1911,57623,956,68110,187,00002,547,712
9May 7, 2026 01:1911,57825,202,42610,189,00002,547,712
10May 7, 2026 01:1911,58727,639,39610,197,00002,547,712
11May 7, 2026 01:1911,59626,698,61610,205,00002,555,904
12May 7, 2026 01:1911,59823,669,15910,207,00002,551,808