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 listJun 30, 2026 00:23Victor MerckléVictor MerckléScore: 4,754Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 30, 2026 00:264,64211,793,9094,085,00002,117,632stderr
2Jun 30, 2026 00:264,64511,811,6824,088,00002,117,632stderr
3Jun 30, 2026 00:264,65011,789,0084,092,00002,117,632stderr
4Jun 30, 2026 00:264,66311,849,9054,104,00002,117,632stderr
5Jun 30, 2026 00:264,75411,824,1364,184,00002,117,632stderr
6Jun 30, 2026 00:264,75611,830,9614,186,00002,117,632stderr
7Jun 30, 2026 00:264,75712,222,9944,187,00002,117,632stderr
8Jun 30, 2026 00:264,75911,833,7764,188,00002,117,632stderr
9Jun 30, 2026 00:264,90011,976,2404,312,00002,117,632stderr