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 18:33Victor MerckléVictor MerckléScore: 5,895Success
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 18:365,76912,629,1635,077,00002,117,632stderr
2Jun 23, 2026 18:365,79012,667,2095,096,00002,117,632stderr
3Jun 23, 2026 18:365,88712,713,0185,181,00002,117,632stderr
4Jun 23, 2026 18:365,88913,070,2995,183,00002,117,632stderr
5Jun 23, 2026 18:365,89512,818,0675,188,00002,117,632stderr
6Jun 23, 2026 18:365,89613,017,0395,189,00002,117,632stderr
7Jun 23, 2026 18:365,90312,739,7725,195,00002,117,632stderr
8Jun 23, 2026 18:365,90412,757,1735,196,00002,117,632stderr
9Jun 23, 2026 18:365,91513,077,0145,206,00002,117,632stderr