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 07:02Josu San MartinJosu San MartinScore: 35,913Success
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 07:0235,62754,990,05630,341,0001,011,0002,531,328
2Jan 17, 2026 07:0135,85552,192,35929,517,0002,035,0002,531,328
3Jan 17, 2026 07:0135,85751,335,40029,519,0002,035,0002,285,568
4Jan 17, 2026 07:0235,91350,341,01730,584,0001,019,0002,445,312
5Jan 17, 2026 07:0135,95656,069,96531,641,00002,441,216
6Jan 17, 2026 07:0236,20955,493,08230,869,000995,0002,449,408