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 15:00Johan SannemoJohan SannemoScore: 9,977Success
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 15:009,83327,361,5038,653,00002,285,568
2Jan 20, 2026 15:009,83432,394,4557,573,0001,081,0002,502,656
3Jan 20, 2026 15:009,85327,635,4948,671,00002,289,664
4Jan 20, 2026 15:009,85926,066,8517,592,0001,084,0002,281,472
5Jan 20, 2026 15:009,97724,649,6607,683,0001,097,0002,420,736
6Jan 20, 2026 15:0010,00532,893,9046,603,0002,201,0002,285,568
7Jan 20, 2026 15:0010,00630,599,7967,705,0001,100,0002,281,472
8Jan 20, 2026 15:0010,08427,026,7797,888,000986,0002,281,472
9Jan 20, 2026 15:0010,13530,442,7745,946,0002,973,0002,285,568