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 listFeb 14, 2026 21:23olliecrowolliecrowScore: 21,815Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 14, 2026 21:2321,81145,210,62218,184,0001,010,0002,514,944
2Feb 14, 2026 21:2321,81542,163,54518,187,0001,010,0002,527,232
3Feb 14, 2026 21:2321,88341,082,63317,230,0002,027,0002,523,136