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 listOct 13, 2026 07:28Karthik ReddyKarthik ReddyScore: 2,479Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 13, 2026 07:312,46410,918,7132,169,000020,480
2Oct 13, 2026 07:312,46810,951,5842,172,000020,480
3Oct 13, 2026 07:312,47611,948,9122,179,000020,480
4Oct 13, 2026 07:312,47811,210,6572,181,000020,480
5Oct 13, 2026 07:312,47911,034,7732,182,000020,480
6Oct 13, 2026 07:312,48111,048,9762,184,000020,480
7Oct 13, 2026 07:312,48611,473,5192,188,000020,480
8Oct 13, 2026 07:312,48810,932,2442,190,000020,480
9Oct 13, 2026 07:312,49011,040,9702,192,000020,480