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 19, 2026 21:30Johan SannemoJohan SannemoScore: 36,981Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 19, 2026 21:3036,71054,859,08530,286,0002,019,0002,523,136
2Jan 19, 2026 21:3036,77560,668,16532,362,00002,265,088
3Jan 19, 2026 21:3036,82255,154,42631,391,0001,012,0002,277,376
4Jan 19, 2026 21:3036,91756,936,22431,472,0001,015,0002,281,472
5Jan 19, 2026 21:3036,98150,984,29932,543,00002,527,232
6Jan 19, 2026 21:3037,03152,767,43832,587,00002,269,184
7Jan 19, 2026 21:3037,06155,883,39331,595,0001,019,0002,351,104
8Jan 19, 2026 21:3037,06960,302,03231,602,0001,019,0002,269,184
9Jan 19, 2026 21:3037,10055,754,38431,628,0001,020,0002,281,472