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:54Victor MerckléVictor MerckléScore: 2,794Success
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:572,75710,639,0672,427,000024,576stderr
2Sep 2, 2026 16:572,78910,581,7492,455,000024,576stderr
3Sep 2, 2026 16:572,78910,622,5162,455,000024,576stderr
4Sep 2, 2026 16:572,79311,244,7422,458,000024,576stderr
5Sep 2, 2026 16:572,79410,573,2132,459,000024,576stderr
6Sep 2, 2026 16:572,79512,129,2942,460,000024,576stderr
7Sep 2, 2026 16:572,79510,538,0712,460,000024,576stderr
8Sep 2, 2026 16:572,81511,158,4752,478,000024,576stderr
9Sep 2, 2026 16:573,01511,415,2072,654,000024,576stderr