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:25Josu San MartinJosu San MartinScore: 35,399Success
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:2535,21752,348,64829,992,000999,0002,457,600
2Jan 17, 2026 06:2535,22052,932,99428,995,0001,999,0002,453,504
3Jan 17, 2026 06:2535,27051,433,01729,036,0002,002,0002,449,408
4Jan 17, 2026 06:2535,27558,512,46429,040,0002,002,0002,453,504
5Jan 17, 2026 06:2535,27651,760,35629,041,0002,002,0002,457,600
6Jan 17, 2026 06:2535,27852,549,42530,044,0001,001,0002,453,504
7Jan 17, 2026 06:2535,28452,424,60329,047,0002,003,0002,465,792
8Jan 17, 2026 06:2535,37657,960,39429,123,0002,008,0002,453,504
9Jan 17, 2026 06:2535,38051,389,03229,126,0002,008,0002,449,408
10Jan 17, 2026 06:2535,39955,680,27429,142,0002,009,0002,441,216
11Jan 17, 2026 06:2535,39953,683,94429,142,0002,009,0002,449,408
12Jan 17, 2026 06:2535,46053,259,63129,192,0002,013,0002,281,472
13Jan 17, 2026 06:2535,49157,756,42530,225,0001,007,0002,449,408
14Jan 17, 2026 06:2535,50551,750,29630,237,0001,007,0002,445,312
15Jan 17, 2026 06:2535,50757,866,36230,239,0001,007,0002,453,504
16Jan 17, 2026 06:2535,51653,305,50829,238,0002,016,0002,445,312
17Jan 17, 2026 06:2535,52254,491,34730,251,0001,008,0002,457,600
18Jan 17, 2026 06:2535,53658,072,55530,264,0001,008,0002,285,568
19Jan 17, 2026 06:2535,59953,842,06130,317,0001,010,0002,445,312
20Jan 17, 2026 06:2535,60155,875,87130,319,0001,010,0002,281,472
21Jan 17, 2026 06:2535,64556,023,95830,357,0001,011,0002,453,504