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 16:53Joshua Bergman AnderssonJoshua Bergman AnderssonScore: 220,597Success
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 16:53220,245221,147,690191,818,0001,998,0002,289,664
2Jan 20, 2026 16:53220,428220,764,310189,978,0003,999,0002,293,760
3Jan 20, 2026 16:53220,432217,027,800191,981,0001,999,0002,293,760
4Jan 20, 2026 16:53220,591215,436,346192,119,0002,001,0002,281,472
5Jan 20, 2026 16:53220,597216,823,884192,124,0002,001,0002,289,664
6Jan 20, 2026 16:53220,668217,035,604193,188,0001,000,0002,289,664
7Jan 20, 2026 16:53220,677219,172,864191,193,0003,003,0002,523,136
8Jan 20, 2026 16:53220,689219,097,853192,204,0002,002,0002,289,664
9Jan 20, 2026 16:53220,857217,226,535189,345,0005,009,0002,519,040