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 13, 2026 12:08Victor MerckléVictor MerckléScore: 7,060Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 13, 2026 12:106,96213,564,4836,127,00002,113,536
2Jun 13, 2026 12:107,02113,623,4426,179,00002,113,536
3Jun 13, 2026 12:107,04213,604,7796,197,00002,113,536
4Jun 13, 2026 12:107,05413,902,8566,208,00002,113,536
5Jun 13, 2026 12:107,06013,393,8836,213,00002,113,536
6Jun 13, 2026 12:107,07613,736,4436,227,00002,113,536
7Jun 13, 2026 12:107,10615,888,3146,254,00002,113,536
8Jun 13, 2026 12:107,13613,723,4246,280,00002,113,536
9Jun 13, 2026 12:107,14714,882,4826,290,00002,113,536