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 11, 2026 06:59Victor MerckléVictor MerckléScore: 8,307Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 11, 2026 07:028,20414,674,7037,220,00002,113,536
2Jun 11, 2026 07:028,20714,520,1087,223,00002,113,536
3Jun 11, 2026 07:028,28514,712,5757,291,00002,113,536
4Jun 11, 2026 07:028,30115,028,4557,305,00002,113,536
5Jun 11, 2026 07:028,30714,721,3757,311,00002,113,536
6Jun 11, 2026 07:028,35314,611,4957,351,00002,113,536
7Jun 11, 2026 07:028,44514,680,4697,432,00002,113,536
8Jun 11, 2026 07:028,47914,769,9907,462,00002,113,536
9Jun 11, 2026 07:028,48115,180,4587,464,00002,113,536