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 05:51Josu San MartinJosu San MartinScore: 48,692Success
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 05:5148,40764,513,04841,584,0001,014,0002,281,472
2Jan 17, 2026 05:5148,49366,726,06241,658,0001,016,0002,281,472
3Jan 17, 2026 05:5148,68467,366,05041,846,000996,0002,514,944
4Jan 17, 2026 05:5148,69268,163,01542,849,00002,445,312
5Jan 17, 2026 05:5148,74768,173,44940,902,0001,995,0002,441,216
6Jan 17, 2026 05:5148,76467,291,25941,915,000997,0002,453,504