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 4, 2026 19:01vahookvahookScore: 3,588Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 4, 2026 18:523,45520,040,2451,013,0002,027,0002,281,472
2Feb 4, 2026 18:523,47523,794,2681,019,0002,039,0002,281,472
3Feb 4, 2026 20:363,48920,455,4121,023,0002,047,0002,490,368
4Feb 4, 2026 20:363,49221,952,7161,024,0002,049,0002,277,376
5Feb 4, 2026 18:523,49416,332,3471,025,0002,050,0002,490,368
6Feb 4, 2026 19:013,50120,975,9501,027,0002,054,0002,498,560
7Feb 4, 2026 18:523,55620,486,4071,043,0002,086,0002,277,376
8Feb 4, 2026 18:523,56016,511,6861,044,0002,089,0002,494,464
9Feb 4, 2026 18:523,57417,841,4301,048,0002,097,0002,494,464
10Feb 4, 2026 18:523,57417,244,5911,048,0002,097,0002,498,560
11Feb 4, 2026 18:523,57622,802,8061,049,0002,098,0002,490,368
12Feb 4, 2026 18:523,58322,596,5711,051,0002,102,0002,494,464
13Feb 4, 2026 20:363,58822,677,8821,052,0002,105,0002,498,560
14Feb 4, 2026 20:363,58817,286,2451,052,0002,105,0002,277,376
15Feb 4, 2026 19:013,59123,145,5471,053,0002,107,0002,277,376
16Feb 4, 2026 20:363,59121,369,8561,053,0002,107,0002,494,464
17Feb 4, 2026 20:363,59120,234,1251,053,0002,107,0002,498,560
18Feb 4, 2026 18:523,59322,410,1011,054,0002,108,0002,502,656
19Feb 4, 2026 20:363,59721,635,7781,055,0002,110,0002,494,464
20Feb 4, 2026 20:363,59718,932,0361,055,0002,110,0002,535,424
21Feb 4, 2026 20:363,59823,280,5451,055,0002,111,0002,490,368
22Feb 4, 2026 18:523,60021,943,2081,056,0002,112,0002,277,376
23Feb 4, 2026 19:013,60319,053,7681,057,0002,114,0002,498,560
24Feb 4, 2026 18:523,60517,534,5001,057,0002,115,0002,277,376