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 21, 2026 13:38Victor MerckléVictor MerckléScore: 7,360Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2026 13:417,24413,888,0356,375,00002,113,536
2Jun 21, 2026 13:417,25313,900,3636,383,00002,113,536
3Jun 21, 2026 13:417,30713,893,6676,431,00002,113,536
4Jun 21, 2026 13:417,36013,922,6586,477,00002,113,536
5Jun 21, 2026 13:417,36014,042,0596,477,00002,113,536
6Jun 21, 2026 13:417,37613,888,0106,491,00002,113,536
7Jun 21, 2026 13:417,38613,928,0656,500,00002,113,536
8Jun 21, 2026 13:417,39513,910,3976,508,00002,113,536
9Jun 21, 2026 13:417,43014,144,2206,539,00002,113,536