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,915Success
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,72555,601,42531,309,0001,009,0002,281,472
2Jan 19, 2026 21:3036,77055,636,72232,358,00002,281,472
3Jan 19, 2026 21:3036,83257,987,70031,400,0001,012,0002,281,472
4Jan 19, 2026 21:3036,89955,735,38931,457,0001,014,0002,519,040
5Jan 19, 2026 21:3036,91556,956,45331,470,0001,015,0002,281,472
6Jan 19, 2026 21:3036,92057,988,19531,475,0001,015,0002,371,584
7Jan 19, 2026 21:3036,95156,758,23929,561,0002,956,0002,281,472
8Jan 19, 2026 21:3036,95955,704,05331,508,0001,016,0002,281,472
9Jan 19, 2026 21:3037,06760,087,92431,600,0001,019,0002,281,472