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 05:13vahookvahookError
Source Code

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

Challenge History
DateChallengerCostTypeStatus
May 17, 2026 05:26M-Rochat10.00CustomSolution Broken
Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 17, 2026 05:27010,054,4411,134,00002,113,536expected "6442459076 ", got " "
2May 17, 2026 05:2709,236,0041,309,00002,113,536expected "6442459076 ", got " "
3May 17, 2026 05:2708,709,9711,203,00002,113,536expected "6442459076 ", got " "
4Feb 6, 2026 05:123,40319,653,659998,0001,997,0002,277,376
5Feb 6, 2026 05:123,40917,742,2721,000,0002,000,0002,498,560
6Feb 6, 2026 05:123,41421,270,8011,001,0002,003,0002,535,424
7Feb 6, 2026 05:123,42723,162,5671,005,0002,011,0002,498,560
8Feb 6, 2026 05:133,43319,162,2541,007,0002,014,0002,494,464
9Feb 6, 2026 05:133,43320,204,6991,007,0002,014,0002,535,424
10Feb 6, 2026 05:123,43415,418,5131,007,0002,015,0002,498,560
11Feb 6, 2026 05:183,43620,363,2081,008,0002,016,0002,277,376
12Feb 6, 2026 05:133,43618,912,6341,008,0002,016,0002,277,376
13Feb 6, 2026 05:133,44017,770,2151,009,0002,018,0002,498,560
14Feb 6, 2026 05:123,44116,392,8931,009,0002,019,0002,535,424
15Feb 6, 2026 05:133,44118,087,9311,009,0002,019,0002,506,752
16Feb 6, 2026 05:133,44820,469,2951,011,0002,023,0002,490,368
17Feb 6, 2026 05:183,45120,460,0091,012,0002,025,0002,494,464
18Feb 6, 2026 05:133,45521,873,8291,013,0002,027,0002,498,560
19Feb 6, 2026 05:183,45720,037,1341,014,0002,028,0002,490,368
20Feb 6, 2026 05:133,46022,729,3941,015,0002,030,0002,281,472
21Feb 6, 2026 05:133,46122,023,3281,015,0002,031,0002,277,376
22Feb 6, 2026 05:123,46118,569,6191,015,0002,031,0002,277,376
23Feb 6, 2026 05:123,46719,026,5391,017,0002,034,0002,498,560
24Feb 6, 2026 05:133,47220,152,2361,018,0002,037,0002,490,368
25Feb 6, 2026 05:123,48217,946,0541,021,0002,043,0002,535,424
26Feb 6, 2026 05:133,59820,570,5831,055,0002,111,0002,498,560
27Feb 6, 2026 05:133,63420,728,6991,066,0002,132,0002,498,560