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 listApr 29, 2026 06:44olliecrowolliecrowScore: 13,902Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 06:4513,40428,183,15210,724,0001,072,0002,338,816stderr
2Apr 29, 2026 06:4513,63229,913,61610,998,000999,0002,334,720stderr
3Apr 29, 2026 06:4513,77625,405,80110,103,0002,020,0002,334,720stderr
4Apr 29, 2026 06:4513,88727,616,78811,203,0001,018,0002,334,720stderr
5Apr 29, 2026 06:4513,90224,408,08911,215,0001,019,0002,342,912stderr
6Apr 29, 2026 06:4513,91026,283,77511,221,0001,020,0002,342,912stderr
7Apr 29, 2026 06:4513,98828,685,04411,285,0001,025,0002,330,624stderr
8Apr 29, 2026 06:4513,99427,933,47611,289,0001,026,0002,318,336stderr
9Apr 29, 2026 06:4514,22931,779,46211,479,0001,043,0002,334,720stderr