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:29Kevin HeaveyKevin HeaveyScore: 2,655Success
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:322,64810,943,5142,331,000020,480
2Sep 25, 2026 18:322,65010,847,3142,332,000020,480
3Sep 25, 2026 18:322,65410,764,2262,336,000020,480
4Sep 25, 2026 18:322,65510,961,3062,337,000020,480
5Sep 25, 2026 18:322,65511,585,7122,337,000020,480
6Sep 25, 2026 18:322,66211,439,0212,343,000020,480
7Sep 25, 2026 18:322,66211,498,7552,343,000020,480
8Sep 25, 2026 18:322,66711,555,2932,347,000020,480
9Sep 25, 2026 18:322,69411,498,0132,371,000020,480