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 23:38Victor MerckléVictor MerckléScore: 38,078Success
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 23:4038,04342,313,75533,478,000024,576stderr
2Sep 2, 2026 23:4038,04442,299,14933,479,000024,576stderr
3Sep 2, 2026 23:4038,04842,241,23133,483,000024,576stderr
4Sep 2, 2026 23:4038,07742,270,45433,508,000024,576stderr
5Sep 2, 2026 23:4038,07841,465,10033,509,000024,576stderr
6Sep 2, 2026 23:4038,08042,298,79733,511,000024,576stderr
7Sep 2, 2026 23:4038,08841,479,49433,518,000024,576stderr
8Sep 2, 2026 23:4038,10141,713,05833,529,000024,576stderr
9Sep 2, 2026 23:4038,14642,422,14333,569,000024,576stderr