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 03:25vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:25M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:2508,492,1691,178,00002,113,536expected "6442459076 ", got "1 "
2May 17, 2026 05:2508,528,1111,200,00002,113,536expected "6442459076 ", got "1 "
3May 17, 2026 05:2509,208,6011,184,00002,113,536expected "6442459076 ", got "1 "
4Feb 7, 2026 03:253,38315,151,845992,0001,985,0002,498,560
5Feb 7, 2026 03:253,38618,530,458993,0001,987,0002,494,464
6Feb 7, 2026 03:253,39019,941,654994,0001,989,0002,490,368
7Feb 7, 2026 03:253,40022,611,491997,0001,995,0002,494,464
8Feb 7, 2026 03:253,40621,532,444999,0001,998,0002,494,464
9Feb 7, 2026 03:253,41316,154,0571,001,0002,002,0002,494,464
10Feb 7, 2026 03:253,41618,946,4591,002,0002,004,0002,498,560
11Feb 7, 2026 03:253,42022,597,5631,003,0002,007,0002,494,464
12Feb 7, 2026 03:253,42420,144,7931,004,0002,009,0002,498,560
13Feb 7, 2026 03:253,42624,483,4211,005,0002,010,0002,498,560
14Feb 7, 2026 03:253,44324,641,2811,010,0002,020,0002,281,472
15Feb 7, 2026 03:253,45318,441,9181,013,0002,026,0002,539,520
16Feb 7, 2026 03:253,47821,161,3291,020,0002,041,0002,277,376
17Feb 7, 2026 03:253,48523,562,0171,022,0002,045,0002,277,376
18Feb 7, 2026 03:253,62717,925,9791,064,0002,128,0002,490,368