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 13:19Johan SannemoJohan SannemoScore: 12,107Success
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 13:1911,95828,609,03210,523,00002,285,568
2Jan 20, 2026 13:1912,10728,036,2939,589,0001,065,0002,355,200
3Jan 20, 2026 13:1912,11030,782,7639,592,0001,065,0002,342,912