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 14:31Victor MerckléVictor MerckléScore: 6,793Success
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 14:346,70413,415,1435,900,00002,113,536
2Jun 21, 2026 14:346,75113,447,4075,941,00002,113,536
3Jun 21, 2026 14:346,75513,491,5085,945,00002,113,536
4Jun 21, 2026 14:346,79013,567,5685,976,00002,113,536
5Jun 21, 2026 14:346,79313,696,7485,978,00002,113,536
6Jun 21, 2026 14:346,79313,463,6585,978,00002,113,536
7Jun 21, 2026 14:346,83213,487,2586,013,00002,113,536
8Jun 21, 2026 14:346,86713,450,7836,043,00002,113,536
9Jun 21, 2026 14:346,86913,460,6136,045,00002,113,536