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 29, 2026 17:17Victor MerckléVictor MerckléScore: 4,778Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 29, 2026 17:204,64211,804,1554,085,00002,113,536
2Jun 29, 2026 17:204,70611,874,3154,142,00002,113,536
3Jun 29, 2026 17:204,75711,835,4484,187,00002,113,536
4Jun 29, 2026 17:204,77611,889,9624,203,00002,113,536
5Jun 29, 2026 17:204,77811,890,2284,205,00002,113,536
6Jun 29, 2026 17:204,78611,847,6704,212,00002,113,536
7Jun 29, 2026 17:204,79412,239,9934,219,00002,113,536
8Jun 29, 2026 17:204,80412,054,4904,228,00002,113,536
9Jun 29, 2026 17:204,88011,982,5154,295,00002,113,536