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 06:56Josu San MartinJosu San MartinScore: 35,113Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2026 06:5634,91754,628,63430,727,00002,457,600
2Jan 17, 2026 06:5634,92355,201,36130,732,00002,461,696
3Jan 17, 2026 06:5634,92766,705,27330,736,00002,383,872
4Jan 17, 2026 06:5634,95854,630,26429,738,0001,025,0002,453,504
5Jan 17, 2026 06:5635,06356,223,10929,860,000995,0002,449,408
6Jan 17, 2026 06:5635,10560,274,30528,899,0001,993,0002,457,600
7Jan 17, 2026 06:5635,10956,784,94729,900,000996,0002,445,312
8Jan 17, 2026 06:5635,11154,562,77929,902,000996,0002,293,760
9Jan 17, 2026 06:5635,11154,581,95527,908,0002,990,0002,445,312
10Jan 17, 2026 06:5635,11155,717,88228,905,0001,993,0002,453,504
11Jan 17, 2026 06:5635,11354,411,20329,903,000996,0002,285,568
12Jan 17, 2026 06:5635,11959,577,78528,912,0001,993,0002,445,312
13Jan 17, 2026 06:5635,12750,849,77428,918,0001,994,0002,445,312
14Jan 17, 2026 06:5635,13853,463,69129,891,0001,030,0002,289,664
15Jan 17, 2026 06:5635,14153,674,12628,929,0001,995,0002,449,408
16Jan 17, 2026 06:5635,17052,369,70628,954,0001,996,0002,449,408
17Jan 17, 2026 06:5635,21552,366,60428,990,0001,999,0002,457,600
18Jan 17, 2026 06:5635,21752,404,67827,992,0002,999,0002,453,504
19Jan 17, 2026 06:5635,25152,274,76030,021,0001,000,0002,453,504
20Jan 17, 2026 06:5635,27755,378,36929,042,0002,002,0002,449,408
21Jan 17, 2026 06:5635,27856,232,16627,040,0004,005,0002,445,312