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:37Kevin HeaveyKevin HeaveyScore: 2,618Success
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:392,61410,866,9282,301,000020,480
2Sep 25, 2026 18:392,61511,537,3652,302,000020,480
3Sep 25, 2026 18:392,61810,849,1782,304,000020,480
4Sep 25, 2026 18:392,61811,095,5062,304,000020,480
5Sep 25, 2026 18:392,61810,918,5322,304,000020,480
6Sep 25, 2026 18:392,63110,904,8082,316,000020,480
7Sep 25, 2026 18:392,63110,873,3462,316,000020,480
8Sep 25, 2026 18:392,63710,899,8312,321,000020,480
9Sep 25, 2026 18:392,63810,972,3812,322,000020,480