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 21:09Victor MerckléVictor MerckléScore: 28,572Success
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 21:1228,56433,309,40725,137,000024,576stderr
2Sep 2, 2026 21:1228,56533,868,08625,138,000024,576stderr
3Sep 2, 2026 21:1228,56733,319,88125,139,000024,576stderr
4Sep 2, 2026 21:1228,56833,258,09125,140,000024,576stderr
5Sep 2, 2026 21:1228,57233,975,00325,144,000024,576stderr
6Sep 2, 2026 21:1228,57633,323,10425,147,000024,576stderr
7Sep 2, 2026 21:1228,57733,962,42625,148,000024,576stderr
8Sep 2, 2026 21:1228,58433,308,09225,154,000024,576stderr
9Sep 2, 2026 21:1228,58533,304,45425,155,000024,576stderr