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:41Victor MerckléVictor MerckléScore: 7,194Success
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:437,15613,289,6956,298,00002,113,536
2Jun 15, 2026 17:437,15913,546,4576,300,00002,113,536
3Jun 15, 2026 17:437,16913,381,2316,309,00002,113,536
4Jun 15, 2026 17:437,18813,349,7886,326,00002,113,536
5Jun 15, 2026 17:437,19413,447,1666,331,00002,113,536
6Jun 15, 2026 17:437,21813,559,6256,352,00002,113,536
7Jun 15, 2026 17:437,23513,427,8366,367,00002,113,536
8Jun 15, 2026 17:437,36813,539,7426,484,00002,113,536
9Jun 15, 2026 17:437,38813,624,2536,502,00002,113,536