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 20:22Victor MerckléVictor MerckléScore: 7,076Success
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 20:256,96813,408,2696,132,00002,113,536
2Jun 19, 2026 20:257,06514,011,3286,218,00002,113,536
3Jun 19, 2026 20:257,07213,731,8276,224,00002,113,536
4Jun 19, 2026 20:257,07513,824,3366,226,00002,113,536
5Jun 19, 2026 20:257,07613,837,1986,227,00002,113,536
6Jun 19, 2026 20:257,07713,962,7176,228,00002,113,536
7Jun 19, 2026 20:257,18214,131,5326,321,00002,113,536
8Jun 19, 2026 20:257,26913,819,1836,397,00002,113,536
9Jun 19, 2026 20:257,37014,000,2336,486,00002,113,536