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 22:17Victor MerckléVictor MerckléScore: 44,750Success
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 22:1944,73648,150,10339,368,000024,576stderr
2Sep 2, 2026 22:1944,74048,121,64339,372,000024,576stderr
3Sep 2, 2026 22:1944,74248,155,53439,373,000024,576stderr
4Sep 2, 2026 22:1944,74547,475,24439,376,000024,576stderr
5Sep 2, 2026 22:1944,75048,158,47039,380,000024,576stderr
6Sep 2, 2026 22:1944,75148,119,61039,381,000024,576stderr
7Sep 2, 2026 22:1944,76247,626,35539,391,000024,576stderr
8Sep 2, 2026 22:1944,77347,556,98839,401,000024,576stderr
9Sep 2, 2026 22:1944,78847,645,56139,414,000024,576stderr