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 06:29vahookvahookError
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:2608,570,9281,192,00002,117,632expected "6442459076 ", got " "stderr
2May 17, 2026 05:26010,226,4891,200,00002,117,632expected "6442459076 ", got " "stderr
3May 17, 2026 05:26011,345,3621,196,00002,117,632expected "6442459076 ", got " "stderr
4Feb 6, 2026 06:083,37217,399,943989,0001,978,0002,494,464
5Feb 6, 2026 16:473,38323,285,556992,0001,985,0002,494,464
6Feb 6, 2026 06:083,39217,683,405995,0001,990,0002,494,464
7Feb 6, 2026 16:473,39319,978,130995,0001,991,0002,498,560
8Feb 6, 2026 06:293,39721,747,829996,0001,993,0002,277,376
9Feb 6, 2026 06:293,40917,922,7481,000,0002,000,0002,494,464
10Feb 6, 2026 06:293,41618,619,6551,002,0002,004,0002,277,376
11Feb 6, 2026 06:083,41719,823,9531,002,0002,005,0002,498,560
12Feb 6, 2026 16:473,42420,050,5641,004,0002,009,0002,277,376
13Feb 6, 2026 06:293,42417,834,6371,004,0002,009,0002,494,464
14Feb 6, 2026 06:083,43018,517,1051,006,0002,012,0002,277,376
15Feb 6, 2026 06:073,43124,591,8011,006,0002,013,0002,277,376
16Feb 6, 2026 06:293,43422,013,9691,007,0002,015,0002,498,560
17Feb 6, 2026 06:073,43423,696,3961,007,0002,015,0002,494,464
18Feb 6, 2026 06:083,43423,484,9181,007,0002,015,0002,277,376
19Feb 6, 2026 06:293,43622,972,0751,008,0002,016,0002,498,560
20Feb 6, 2026 06:083,44122,170,7051,009,0002,019,0002,494,464
21Feb 6, 2026 06:073,44120,635,0311,009,0002,019,0002,494,464
22Feb 6, 2026 16:473,44121,171,9821,009,0002,019,0002,498,560
23Feb 6, 2026 06:083,44719,165,8811,011,0002,022,0002,498,560
24Feb 6, 2026 16:473,45119,966,0471,012,0002,025,0002,277,376
25Feb 6, 2026 16:473,45521,377,3971,013,0002,027,0002,502,656
26Feb 6, 2026 06:293,45517,636,7921,013,0002,027,0002,498,560
27Feb 6, 2026 06:293,45819,565,7301,014,0002,029,0002,277,376
28Feb 6, 2026 06:083,46017,397,7701,015,0002,030,0002,535,424
29Feb 6, 2026 06:293,46417,375,1681,016,0002,032,0002,502,656
30Feb 6, 2026 16:473,46522,684,0401,016,0002,033,0002,498,560
31Feb 6, 2026 06:083,46717,497,7701,017,0002,034,0002,498,560
32Feb 6, 2026 16:473,47023,465,6291,018,0002,036,0002,494,464
33Feb 6, 2026 06:293,48924,859,5981,023,0002,047,0002,494,464
34Feb 6, 2026 06:293,63122,287,6901,065,0002,130,0002,535,424
35Feb 6, 2026 16:473,64421,090,8241,069,0002,138,0002,277,376
36Feb 6, 2026 06:293,66121,234,2541,074,0002,148,0002,277,376