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:30Johan SannemoJohan SannemoScore: 15,394Success
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:3015,31733,134,63111,406,0002,073,0002,359,296
2Jan 20, 2026 11:3015,34229,166,13712,463,0001,038,0002,289,664
3Jan 20, 2026 11:3015,35234,899,22513,510,00002,289,664
4Jan 20, 2026 11:3015,39033,536,04012,502,0001,041,0002,363,392
5Jan 20, 2026 11:3015,39432,544,69711,463,0002,084,0002,351,104
6Jan 20, 2026 11:3015,41335,027,93912,520,0001,043,0002,355,200
7Jan 20, 2026 11:3015,42631,073,30211,487,0002,088,0002,478,080
8Jan 20, 2026 11:3015,47229,562,39611,521,0002,094,0002,359,296
9Jan 20, 2026 11:3015,54829,884,32712,630,0001,052,0002,359,296