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 2, 2026 16:42Victor MerckléVictor MerckléScore: 2,775Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 2, 2026 16:452,76510,587,7522,434,000024,576stderr
2Sep 2, 2026 16:452,76510,702,5962,434,000024,576stderr
3Sep 2, 2026 16:452,77310,592,9952,441,000024,576stderr
4Sep 2, 2026 16:452,77310,567,9592,441,000024,576stderr
5Sep 2, 2026 16:452,77510,573,4012,442,000024,576stderr
6Sep 2, 2026 16:452,77910,720,1882,446,000024,576stderr
7Sep 2, 2026 16:452,78511,239,0952,451,000024,576stderr
8Sep 2, 2026 16:452,79210,944,9792,457,000024,576stderr
9Sep 2, 2026 16:452,79611,222,7582,461,000024,576stderr