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 22:47Victor MerckléVictor MerckléScore: 6,988Success
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 22:506,81413,465,2475,997,00002,113,536
2Jun 19, 2026 22:506,86513,554,8276,042,00002,113,536
3Jun 19, 2026 22:506,86913,519,8676,045,00002,113,536
4Jun 19, 2026 22:506,98713,807,5636,149,00002,113,536
5Jun 19, 2026 22:506,98813,571,5356,150,00002,113,536
6Jun 19, 2026 22:506,99713,845,0166,158,00002,113,536
7Jun 19, 2026 22:507,01813,648,5876,176,00002,113,536
8Jun 19, 2026 22:507,01913,638,1666,177,00002,113,536
9Jun 19, 2026 22:507,36113,968,8856,478,00002,113,536