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 27, 2026 13:35SemyonSemyonScore: 12,576,903Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 27, 2026 13:3512,510,81611,041,455,85911,008,519,000999,0002,281,472
2Jan 27, 2026 13:3512,576,90311,095,139,22011,066,676,000999,0002,281,472
3Jan 27, 2026 13:3512,577,70811,103,436,66011,064,385,0003,998,0002,265,088