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:43Victor MerckléVictor MerckléScore: 6,784Success
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:466,68713,384,0845,885,00002,113,536
2Jun 21, 2026 13:466,71913,422,7625,913,00002,113,536
3Jun 21, 2026 13:466,77213,466,4675,960,00002,113,536
4Jun 21, 2026 13:466,78213,395,4175,969,00002,113,536
5Jun 21, 2026 13:466,78413,473,8925,970,00002,113,536
6Jun 21, 2026 13:466,78913,472,8335,975,00002,113,536
7Jun 21, 2026 13:466,86413,454,3926,041,00002,113,536
8Jun 21, 2026 13:466,86813,758,8236,044,00002,113,536
9Jun 21, 2026 13:467,03113,676,4666,188,00002,113,536