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 23:54Johan SannemoJohan SannemoScore: 38,216Success
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 23:5438,14960,252,44932,554,0001,017,0002,527,232
2Jan 19, 2026 23:5438,21655,736,89033,630,00002,523,136
3Jan 19, 2026 23:5438,49963,660,74931,887,0001,992,0002,519,040