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 06:04Victor MerckléVictor MerckléScore: 7,476Success
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 06:077,42113,787,9206,531,00002,113,536
2Jun 11, 2026 06:077,42713,818,5136,536,00002,113,536
3Jun 11, 2026 06:077,44313,822,4676,550,00002,113,536
4Jun 11, 2026 06:077,46013,833,9406,565,00002,113,536
5Jun 11, 2026 06:077,47614,032,5976,579,00002,113,536
6Jun 11, 2026 06:077,52913,868,5616,626,00002,113,536
7Jun 11, 2026 06:077,54813,886,2246,643,00002,113,536
8Jun 11, 2026 06:077,57114,184,5346,663,00002,113,536
9Jun 11, 2026 06:077,57217,690,1736,664,00002,113,536