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 4, 2026 08:06Victor MerckléVictor MerckléScore: 3,989Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 4, 2026 08:183,97811,651,8163,501,000024,576stderr
2Sep 4, 2026 08:183,98011,692,6963,503,000024,576stderr
3Sep 4, 2026 08:183,98711,723,1743,509,000024,576stderr
4Sep 4, 2026 08:183,98811,632,1623,510,000024,576stderr
5Sep 4, 2026 08:183,98911,574,7483,511,000024,576stderr
6Sep 4, 2026 08:183,98911,727,5283,511,000024,576stderr
7Sep 4, 2026 08:183,99211,693,6483,513,000024,576stderr
8Sep 4, 2026 08:183,99211,679,7113,513,000024,576stderr
9Sep 4, 2026 08:183,99611,710,8003,517,000024,576stderr