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 19:49Johan SannemoJohan SannemoScore: 84,072Success
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 19:4983,720100,885,31172,665,0001,009,0002,281,472
2Jan 19, 2026 19:4983,95098,642,49472,878,000998,0002,281,472
3Jan 19, 2026 19:4983,967104,009,47771,894,0001,997,0002,523,136
4Jan 19, 2026 19:4984,00796,744,07671,928,0001,998,0002,527,232
5Jan 19, 2026 19:4984,07295,931,18672,984,000999,0002,265,088
6Jan 19, 2026 19:4984,139101,335,96973,042,0001,000,0002,293,760
7Jan 19, 2026 19:4984,15698,011,08172,056,0002,001,0002,269,184
8Jan 19, 2026 19:4984,19795,538,33573,092,0001,001,0002,281,472
9Jan 19, 2026 19:4984,405102,453,08472,269,0002,007,0002,269,184