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 listJan 17, 2026 16:58Josu San MartinJosu San MartinScore: 23,045Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 18, 2026 00:5522,17644,390,79617,461,0002,054,0002,523,136
2Jan 18, 2026 00:5522,21841,870,54018,523,0001,029,0002,539,520
3Jan 18, 2026 00:5522,26643,850,83619,594,00002,539,520
4Jan 17, 2026 17:0022,81049,994,45219,070,0001,003,0002,527,232
5Jan 17, 2026 15:2922,81649,583,58519,075,0001,003,0002,531,328
6Jan 17, 2026 17:0022,82448,245,62619,081,0001,004,0002,527,232
7Jan 17, 2026 15:2922,82648,221,06019,083,0001,004,0002,527,232
8Jan 17, 2026 17:0022,83147,828,70718,082,0002,009,0002,535,424
9Jan 17, 2026 16:5822,91045,641,98918,145,0002,016,0002,502,656
10Jan 17, 2026 16:5822,91648,442,98118,150,0002,016,0002,519,040
11Jan 17, 2026 16:5823,04541,807,91317,238,0003,042,0002,514,944
12Jan 18, 2026 00:5423,25644,326,06619,442,0001,023,0002,322,432
13Jan 17, 2026 15:2923,29745,498,33318,451,0002,050,0002,535,424
14Jan 18, 2026 00:5423,33443,270,37319,508,0001,026,0002,330,624
15Jan 18, 2026 00:5423,93351,944,73021,061,00002,437,120
16Jan 18, 2026 00:5524,28952,752,66020,357,0001,017,0002,539,520
17Jan 18, 2026 00:5524,45543,020,26319,471,0002,049,0002,539,520
18Jan 18, 2026 00:5524,48944,120,29721,550,00002,351,104
19Jan 17, 2026 16:5827,74345,296,29224,414,00002,396,160
20Jan 17, 2026 16:5827,81547,419,56723,458,0001,019,0002,535,424
21Jan 17, 2026 16:5827,88049,112,23222,490,0002,044,0002,535,424