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 29, 2026 18:01Victor MerckléVictor MerckléScore: 6,734Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 29, 2026 18:046,67013,722,9704,692,0001,178,0002,117,632stderr
2Jun 29, 2026 18:046,69213,707,8594,708,0001,181,0002,117,632stderr
3Jun 29, 2026 18:046,70613,757,4614,720,0001,182,0002,117,632stderr
4Jun 29, 2026 18:046,71213,750,9994,601,0001,306,0002,117,632stderr
5Jun 29, 2026 18:046,73413,739,8494,736,0001,190,0002,117,632stderr
6Jun 29, 2026 18:046,79213,701,9614,780,0001,197,0002,117,632stderr
7Jun 29, 2026 18:046,83213,820,6334,814,0001,199,0002,117,632stderr
8Jun 29, 2026 18:046,83213,669,4464,001,0002,012,0002,117,632stderr
9Jun 29, 2026 18:046,83614,052,1414,814,0001,202,0002,117,632stderr