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 7, 2026 01:14Victor MerckléVictor MerckléScore: 7,759Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 7, 2026 01:177,64014,120,0286,724,00002,113,536
2Jun 7, 2026 01:177,65714,173,5406,739,00002,113,536
3Jun 7, 2026 01:177,69314,174,1646,770,00002,113,536
4Jun 7, 2026 01:177,73514,135,9976,807,00002,113,536
5Jun 7, 2026 01:177,75914,214,5626,828,00002,113,536
6Jun 7, 2026 01:177,76014,167,3096,829,00002,113,536
7Jun 7, 2026 01:177,77114,186,7786,839,00002,113,536
8Jun 7, 2026 01:177,90214,385,9726,954,00002,113,536
9Jun 7, 2026 01:177,91314,324,0826,964,00002,113,536