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 11, 2026 07:13Victor MerckléVictor MerckléScore: 7,184Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 11, 2026 07:167,05114,736,9366,205,00002,113,536
2Jun 11, 2026 07:167,05113,594,5726,205,00002,113,536
3Jun 11, 2026 07:167,05613,505,4206,210,00002,113,536
4Jun 11, 2026 07:167,17513,500,6286,314,00002,113,536
5Jun 11, 2026 07:167,18413,644,8996,322,00002,113,536
6Jun 11, 2026 07:167,19313,625,0776,330,00002,113,536
7Jun 11, 2026 07:167,23513,981,3576,367,00002,113,536
8Jun 11, 2026 07:167,26013,598,6026,389,00002,113,536
9Jun 11, 2026 07:167,39714,009,5236,510,00002,113,536