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 18, 2026 02:27Josu San MartinJosu San MartinScore: 19,576Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 18, 2026 02:2719,42042,055,11615,080,0002,010,0002,338,816
2Jan 18, 2026 02:2719,43534,711,55315,091,0002,012,0002,428,928
3Jan 18, 2026 02:2719,56040,642,78515,188,0002,025,0002,510,848
4Jan 18, 2026 02:2719,56142,546,49215,189,0002,025,0002,416,640
5Jan 18, 2026 02:2719,57640,178,77514,187,0003,040,0002,420,736
6Jan 18, 2026 02:2719,61039,891,46315,227,0002,030,0002,334,720
7Jan 18, 2026 02:2719,63046,109,86515,242,0002,032,0002,342,912
8Jan 18, 2026 02:2719,71943,405,95715,312,0002,041,0002,416,640
9Jan 18, 2026 02:2719,81542,797,03816,412,0001,025,0002,510,848