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 23, 2026 19:29Victor MerckléVictor MerckléScore: 5,212Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 23, 2026 19:315,18112,085,6714,560,00002,113,536
2Jun 23, 2026 19:315,20012,322,3744,576,00002,113,536
3Jun 23, 2026 19:315,20212,210,0044,578,00002,113,536
4Jun 23, 2026 19:315,20512,031,4764,581,00002,113,536
5Jun 23, 2026 19:315,21212,422,7704,587,00002,113,536
6Jun 23, 2026 19:315,22212,454,4074,596,00002,113,536
7Jun 23, 2026 19:315,22312,382,3534,597,00002,113,536
8Jun 23, 2026 19:315,23412,438,9044,606,00002,113,536
9Jun 23, 2026 19:315,23512,418,5984,607,00002,113,536