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:29vahookvahookScore: 3,441Success
Source Code

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

Challenge History

No challenges yet.

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