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 listApr 6, 2026 22:42olliecrowolliecrowScore: 15,275Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 6, 2026 22:4215,12029,656,29413,306,00002,269,184
2Apr 6, 2026 22:4215,15540,997,41313,336,00002,519,040
3Apr 6, 2026 22:4215,18139,714,72613,359,00002,519,040
4Apr 6, 2026 22:4215,25128,156,18613,421,00002,523,136
5Apr 6, 2026 22:4215,27530,233,03913,442,00002,523,136
6Apr 6, 2026 22:4215,29932,464,04213,463,00002,527,232
7Apr 6, 2026 22:4215,30329,702,09413,467,00002,293,760
8Apr 6, 2026 22:4215,31626,166,46212,442,0001,036,0002,527,232
9Apr 6, 2026 22:4215,32331,227,65513,484,00002,527,232