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 18:30Victor MerckléVictor MerckléScore: 2,828Success
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 18:332,81010,633,3592,473,000024,576stderr
2Sep 2, 2026 18:332,81710,667,3412,479,000024,576stderr
3Sep 2, 2026 18:332,82610,654,3252,487,000024,576stderr
4Sep 2, 2026 18:332,82710,705,8132,488,000024,576stderr
5Sep 2, 2026 18:332,82812,060,9462,489,000024,576stderr
6Sep 2, 2026 18:332,82911,236,4182,490,000024,576stderr
7Sep 2, 2026 18:332,84510,632,5862,504,000024,576stderr
8Sep 2, 2026 18:332,84711,884,3602,506,000024,576stderr
9Sep 2, 2026 18:332,93211,382,2832,581,000024,576stderr