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 10:29Johan SannemoJohan SannemoScore: 16,231Success
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 10:2916,15733,643,96111,172,0003,046,0002,289,664
2Jan 20, 2026 10:2916,17331,207,23411,183,0003,049,0002,359,296
3Jan 20, 2026 10:2916,19734,713,80011,199,0003,054,0002,289,664
4Jan 20, 2026 10:2916,21334,817,40811,210,0003,057,0002,281,472
5Jan 20, 2026 10:2916,23135,529,23912,243,0002,040,0002,289,664
6Jan 20, 2026 10:2916,24131,622,81112,251,0002,041,0002,355,200
7Jan 20, 2026 10:2916,26828,021,77412,271,0002,045,0002,359,296
8Jan 20, 2026 10:2916,35236,418,24412,335,0002,055,0002,367,488
9Jan 20, 2026 10:2916,42437,261,04711,356,0003,097,0002,289,664