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 4, 2026 07:35Victor MerckléVictor MerckléScore: 2,762Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 4, 2026 07:422,74810,640,6102,419,000024,576stderr
2Sep 4, 2026 07:422,75010,601,2342,420,000024,576stderr
3Sep 4, 2026 07:422,75510,702,6412,425,000024,576stderr
4Sep 4, 2026 07:422,76010,555,4432,429,000024,576stderr
5Sep 4, 2026 07:422,76211,268,8882,431,000024,576stderr
6Sep 4, 2026 07:422,76711,171,7482,435,000024,576stderr
7Sep 4, 2026 07:422,77110,483,4642,439,000024,576stderr
8Sep 4, 2026 07:422,78910,657,3452,455,000024,576stderr
9Sep 4, 2026 07:422,92810,840,9872,577,000024,576stderr