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 listJul 31, 2026 22:20Warren FuWarren FuScore: 109,646Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 31, 2026 22:23109,384106,322,83695,246,0001,012,0002,113,536
2Jul 31, 2026 22:23109,393106,298,38395,255,0001,011,0002,113,536
3Jul 31, 2026 22:23109,459106,188,68695,317,0001,007,0002,113,536
4Jul 31, 2026 22:23109,580107,082,59395,422,0001,009,0002,113,536
5Jul 31, 2026 22:23109,646106,422,80295,478,0001,011,0002,113,536
6Jul 31, 2026 22:23109,655109,851,68195,491,0001,006,0002,113,536
7Jul 31, 2026 22:23109,796106,612,99395,614,0001,007,0002,113,536
8Jul 31, 2026 22:23109,903106,671,36895,709,0001,006,0002,113,536
9Jul 31, 2026 22:23110,110107,227,53595,887,0001,010,0002,113,536