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 listSep 25, 2026 18:22Kevin HeaveyKevin HeaveyScore: 2,669Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 25, 2026 18:252,64610,823,6042,329,000020,480
2Sep 25, 2026 18:252,66111,513,1862,342,000020,480
3Sep 25, 2026 18:252,66710,814,6482,347,000020,480
4Sep 25, 2026 18:252,66811,503,8132,348,000020,480
5Sep 25, 2026 18:252,66911,489,0222,349,000020,480
6Sep 25, 2026 18:252,67010,821,7872,350,000020,480
7Sep 25, 2026 18:252,67010,851,6752,350,000020,480
8Sep 25, 2026 18:252,67610,869,9772,355,000020,480
9Sep 25, 2026 18:252,67811,540,0882,357,000020,480