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 21:24Johan SannemoJohan SannemoScore: 38,515Success
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 21:2438,32860,298,36232,707,0001,022,0002,281,472
2Jan 19, 2026 21:2438,51559,171,73732,897,000996,0002,281,472
3Jan 19, 2026 21:2438,73558,980,06832,082,0002,005,0002,281,472