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 19, 2026 21:49Johan SannemoJohan SannemoScore: 36,074Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 19, 2026 21:4935,89857,341,92430,571,0001,019,0002,281,472
2Jan 19, 2026 21:4935,95654,018,28830,621,0001,020,0002,527,232
3Jan 19, 2026 21:4935,99558,102,93530,655,0001,021,0002,269,184
4Jan 19, 2026 21:4936,02460,000,97530,679,0001,022,0002,281,472
5Jan 19, 2026 21:4936,07463,112,85129,697,0002,048,0002,281,472
6Jan 19, 2026 21:4936,10161,747,52430,745,0001,024,0002,281,472
7Jan 19, 2026 21:4936,20757,649,46730,867,000995,0002,281,472
8Jan 19, 2026 21:4936,25862,134,24430,910,000997,0002,281,472
9Jan 19, 2026 21:4936,36555,183,40630,001,0002,000,0002,281,472