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 7, 2026 05:25vahookvahookScore: 3,395Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 7, 2026 04:283,33422,358,446978,0001,956,0002,490,368
2Feb 7, 2026 04:283,34424,807,399981,0001,962,0002,502,656
3Feb 7, 2026 04:283,34921,402,818982,0001,965,0002,494,464
4Feb 7, 2026 04:283,35222,050,162983,0001,967,0002,498,560
5Feb 7, 2026 04:283,38020,786,619991,0001,983,0002,498,560
6Feb 7, 2026 04:283,39217,165,162995,0001,990,0002,277,376
7Feb 7, 2026 04:283,39520,615,806996,0001,992,0002,490,368
8Feb 7, 2026 04:283,39523,466,021996,0001,992,0002,502,656
9Feb 7, 2026 04:283,39925,878,992997,0001,994,0002,490,368
10Feb 7, 2026 04:283,40220,685,382998,0001,996,0002,498,560
11Feb 7, 2026 04:283,40322,101,662998,0001,997,0002,494,464
12Feb 7, 2026 04:283,40914,355,0781,000,0002,000,0002,498,560
13Feb 7, 2026 05:253,41721,207,3021,002,0002,005,0002,277,376
14Feb 7, 2026 05:253,42621,254,1651,005,0002,010,0002,277,376
15Feb 7, 2026 05:253,47725,607,0851,020,0002,040,0002,277,376