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 23, 2026 10:16Victor MerckléVictor MerckléScore: 6,254Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 23, 2026 10:186,12912,988,2795,394,00002,117,632stderr
2Jun 23, 2026 10:186,21713,008,9695,471,00002,117,632stderr
3Jun 23, 2026 10:186,24513,369,6705,496,00002,117,632stderr
4Jun 23, 2026 10:186,25013,396,0945,500,00002,117,632stderr
5Jun 23, 2026 10:186,25413,511,1305,504,00002,117,632stderr
6Jun 23, 2026 10:186,25913,440,0225,508,00002,117,632stderr
7Jun 23, 2026 10:186,28613,453,6475,532,00002,117,632stderr
8Jun 23, 2026 10:186,34213,479,3785,581,00002,117,632stderr
9Jun 23, 2026 10:186,56413,643,5515,777,00002,117,632stderr