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 listFeb 14, 2026 23:24olliecrowolliecrowScore: 18,324Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 14, 2026 23:2418,21439,968,09315,027,0001,001,0002,478,080
2Feb 14, 2026 23:2418,24836,783,31115,055,0001,003,0002,482,176
3Feb 14, 2026 23:2418,24835,863,42815,055,0001,003,0002,482,176
4Feb 14, 2026 23:2418,26337,756,73615,067,0001,004,0002,396,160
5Feb 14, 2026 23:2418,32435,087,93915,118,0001,007,0002,478,080
6Feb 14, 2026 23:2418,40537,780,25714,172,0002,024,0002,482,176
7Feb 14, 2026 23:2418,43238,145,54615,207,0001,013,0002,301,952
8Feb 14, 2026 23:2418,46140,344,23915,231,0001,015,0002,482,176
9Feb 14, 2026 23:2418,49237,226,16515,256,0001,017,0002,334,720