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 6, 2026 21:22vahookvahookError
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:25011,430,5641,192,00002,117,632expected "6442459076 ", got " "stderr
2May 17, 2026 05:2508,406,3091,280,00002,117,632expected "6442459076 ", got " "stderr
3May 17, 2026 05:2509,713,5511,197,00002,117,632expected "6442459076 ", got " "stderr
4Feb 6, 2026 18:483,40617,236,827999,0001,998,0002,498,560
5Feb 6, 2026 21:223,40918,133,1861,000,0002,000,0002,494,464
6Feb 6, 2026 21:223,41018,324,0651,000,0002,001,0002,494,464
7Feb 6, 2026 18:483,42618,956,8621,005,0002,010,0002,506,752
8Feb 6, 2026 18:483,42619,698,8151,005,0002,010,0002,277,376
9Feb 6, 2026 18:473,43120,468,7391,006,0002,013,0002,494,464
10Feb 6, 2026 18:473,43121,199,9691,006,0002,013,0002,502,656
11Feb 6, 2026 21:223,43315,581,8971,007,0002,014,0002,494,464
12Feb 6, 2026 18:473,44317,788,6091,010,0002,020,0002,490,368
13Feb 6, 2026 21:223,44719,059,4541,011,0002,022,0002,535,424
14Feb 6, 2026 21:223,45022,556,8231,012,0002,024,0002,502,656
15Feb 6, 2026 21:223,45122,993,8911,012,0002,025,0002,281,472
16Feb 6, 2026 21:223,45124,794,7221,012,0002,025,0002,498,560
17Feb 6, 2026 21:223,45721,644,6171,014,0002,028,0002,498,560
18Feb 6, 2026 21:223,45723,367,9621,014,0002,028,0002,494,464