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:23Victor MerckléVictor MerckléScore: 2,894Success
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:262,87110,712,9482,527,000024,576stderr
2Sep 2, 2026 18:262,88110,711,2392,536,000024,576stderr
3Sep 2, 2026 18:262,88410,565,4682,538,000024,576stderr
4Sep 2, 2026 18:262,88710,601,6752,541,000024,576stderr
5Sep 2, 2026 18:262,89410,669,9182,547,000024,576stderr
6Sep 2, 2026 18:262,91111,271,8222,562,000024,576stderr
7Sep 2, 2026 18:262,91310,646,5882,564,000024,576stderr
8Sep 2, 2026 18:262,92910,680,3162,578,000024,576stderr
9Sep 2, 2026 18:262,94311,332,3032,590,000024,576stderr