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:43Kevin HeaveyKevin HeaveyScore: 2,614Success
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:452,60311,453,5042,291,000020,480
2Sep 25, 2026 18:452,60510,879,6782,293,000020,480
3Sep 25, 2026 18:452,60911,451,5672,296,000020,480
4Sep 25, 2026 18:452,61011,428,0902,297,000020,480
5Sep 25, 2026 18:452,61411,432,1182,301,000020,480
6Sep 25, 2026 18:452,61711,093,2812,303,000020,480
7Sep 25, 2026 18:452,62210,835,9532,308,000020,480
8Sep 25, 2026 18:452,62510,955,2702,310,000020,480
9Sep 25, 2026 18:452,63511,492,0142,319,000020,480