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 17, 2026 17:22Josu San MartinJosu San MartinScore: 20,090Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2026 17:2219,80846,868,37816,406,0001,025,0002,359,296
2Jan 17, 2026 17:2220,04135,472,65615,562,0002,074,0002,514,944
3Jan 17, 2026 17:2220,05240,240,38817,646,00002,473,984
4Jan 17, 2026 17:2220,09047,116,42317,679,00002,359,296
5Jan 17, 2026 17:2220,10647,641,72116,653,0001,040,0002,363,392
6Jan 17, 2026 17:2220,44442,615,47714,993,0002,998,0002,514,944