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 15, 2026 17:46Victor MerckléVictor MerckléScore: 7,231Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 15, 2026 17:497,19513,554,7146,332,00002,113,536
2Jun 15, 2026 17:497,21913,422,1256,353,00002,113,536
3Jun 15, 2026 17:497,22213,381,3486,356,00002,113,536
4Jun 15, 2026 17:497,23113,669,9876,364,00002,113,536
5Jun 15, 2026 17:497,23113,447,1656,364,00002,113,536
6Jun 15, 2026 17:497,23613,447,7346,368,00002,113,536
7Jun 15, 2026 17:497,25313,723,6176,383,00002,113,536
8Jun 15, 2026 17:497,29713,650,6196,422,00002,113,536
9Jun 15, 2026 17:497,36513,677,3846,482,00002,113,536