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 11:47Victor MerckléVictor MerckléScore: 5,468Success
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 11:505,32812,216,1214,689,00002,113,536
2Jun 23, 2026 11:505,36012,207,0624,717,00002,113,536
3Jun 23, 2026 11:505,36312,245,5574,720,00002,113,536
4Jun 23, 2026 11:505,45312,562,4664,799,00002,113,536
5Jun 23, 2026 11:505,46812,234,8874,812,00002,113,536
6Jun 23, 2026 11:505,48012,602,4144,823,00002,113,536
7Jun 23, 2026 11:505,52912,322,2074,866,00002,113,536
8Jun 23, 2026 11:505,55712,591,3934,891,00002,113,536
9Jun 23, 2026 11:505,95312,741,4385,239,00002,113,536