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: 83,698Success
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:1683,484101,631,78072,460,0001,006,0002,445,312
2Jan 17, 2026 17:2283,58393,797,70972,546,0001,007,0002,277,376
3Jan 17, 2026 17:1683,67297,816,08972,623,0001,008,0002,281,472
4Jan 17, 2026 17:2283,69896,885,46072,646,0001,008,0002,445,312
5Jan 17, 2026 17:1683,72498,652,55672,668,0001,009,0002,277,376
6Jan 17, 2026 17:2283,973100,016,36071,899,0001,997,0002,441,216