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 10, 2026 18:53Victor MerckléVictor MerckléScore: 8,585Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 10, 2026 18:568,45215,748,8306,313,0001,125,0002,142,208
2Jun 10, 2026 18:568,48217,037,9116,330,0001,135,0002,142,208
3Jun 10, 2026 18:568,49416,722,5716,229,0001,246,0002,142,208
4Jun 10, 2026 18:568,58017,006,5116,314,0001,237,0002,142,208
5Jun 10, 2026 18:568,58517,087,3376,177,0001,378,0002,142,208
6Jun 10, 2026 18:568,61916,665,2106,451,0001,134,0002,142,208
7Jun 10, 2026 18:568,63616,348,8946,344,0001,256,0002,142,208
8Jun 10, 2026 18:568,63716,890,2966,465,0001,136,0002,142,208
9Jun 10, 2026 18:568,64816,577,0436,357,0001,254,0002,142,208