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 26, 2026 20:14Victor MerckléVictor MerckléScore: 5,386Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 26, 2026 20:175,28512,184,2734,651,00002,113,536
2Jun 26, 2026 20:175,29512,212,1044,660,00002,113,536
3Jun 26, 2026 20:175,29612,162,1624,661,00002,113,536
4Jun 26, 2026 20:175,38412,222,6414,738,00002,113,536
5Jun 26, 2026 20:175,38612,161,5824,740,00002,113,536
6Jun 26, 2026 20:175,38812,488,5704,742,00002,113,536
7Jun 26, 2026 20:175,40012,604,7474,752,00002,113,536
8Jun 26, 2026 20:175,40612,551,8054,758,00002,113,536
9Jun 26, 2026 20:175,46112,247,9944,806,00002,113,536