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 26, 2026 19:09Kevin HeaveyKevin HeaveyScore: 2,492Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 26, 2026 19:272,47110,807,4142,175,000024,576
2Sep 26, 2026 19:272,47611,043,7082,179,000024,576
3Sep 26, 2026 19:272,48810,755,0252,190,000024,576
4Sep 26, 2026 19:272,49010,816,2352,192,000024,576
5Sep 26, 2026 19:272,49210,718,7122,193,000024,576
6Sep 26, 2026 19:272,49310,967,8042,194,000024,576
7Sep 26, 2026 19:272,49610,786,0172,197,000024,576
8Sep 26, 2026 19:272,50610,820,0012,206,000024,576
9Sep 26, 2026 19:272,51310,835,8592,212,000024,576