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 20, 2026 11:16Johan SannemoJohan SannemoScore: 15,799Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 20, 2026 11:1615,75230,691,22011,882,0001,980,0002,363,392
2Jan 20, 2026 11:1615,78431,339,40610,914,0002,976,0002,289,664
3Jan 20, 2026 11:1615,78428,800,87111,906,0001,984,0002,289,664
4Jan 20, 2026 11:1615,79039,604,49911,910,0001,985,0002,363,392
5Jan 20, 2026 11:1615,79140,122,82710,919,0002,977,0002,289,664
6Jan 20, 2026 11:1615,79430,317,08511,914,0001,985,0002,359,296
7Jan 20, 2026 11:1615,79536,205,48712,908,000992,0002,347,008
8Jan 20, 2026 11:1615,79938,684,98411,917,0001,986,0002,277,376
9Jan 20, 2026 11:1615,80031,607,51911,918,0001,986,0002,289,664
10Jan 20, 2026 11:1615,80140,179,83612,912,000993,0002,289,664
11Jan 20, 2026 11:1615,80631,293,52810,929,0002,980,0002,289,664
12Jan 20, 2026 11:1615,81533,276,25510,935,0002,982,0002,355,200
13Jan 20, 2026 11:1615,83335,486,73311,943,0001,990,0002,289,664
14Jan 20, 2026 11:1615,93030,920,59712,016,0002,002,0002,289,664
15Jan 20, 2026 11:1615,95831,118,94112,037,0002,006,0002,289,664