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 06:18Victor MerckléVictor MerckléScore: 5,868Success
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 06:215,75112,563,9505,061,00002,113,536
2Jun 23, 2026 06:215,79013,275,1265,096,00002,113,536
3Jun 23, 2026 06:215,80512,559,6595,109,00002,113,536
4Jun 23, 2026 06:215,85312,893,7635,151,00002,113,536
5Jun 23, 2026 06:215,86812,693,7495,164,00002,113,536
6Jun 23, 2026 06:215,87112,996,2745,167,00002,113,536
7Jun 23, 2026 06:215,89412,935,4295,187,00002,113,536
8Jun 23, 2026 06:215,91812,981,7255,208,00002,113,536
9Jun 23, 2026 06:215,92612,736,3995,215,00002,113,536