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 19, 2026 20:32Victor MerckléVictor MerckléScore: 7,014Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 19, 2026 20:356,92313,488,9826,093,00002,113,536
2Jun 19, 2026 20:356,94613,364,4926,113,00002,113,536
3Jun 19, 2026 20:356,94713,562,8286,114,00002,113,536
4Jun 19, 2026 20:356,95713,372,3736,123,00002,113,536
5Jun 19, 2026 20:357,01413,735,3976,173,00002,113,536
6Jun 19, 2026 20:357,05613,696,1356,210,00002,113,536
7Jun 19, 2026 20:357,08813,512,1876,238,00002,113,536
8Jun 19, 2026 20:357,14513,698,9366,288,00002,113,536
9Jun 19, 2026 20:357,18613,491,0716,324,00002,113,536