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 21, 2026 13:55Victor MerckléVictor MerckléScore: 8,613Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2026 13:588,52315,028,8377,501,00002,117,632stderr
2Jun 21, 2026 13:588,52514,977,9397,502,00002,117,632stderr
3Jun 21, 2026 13:588,58615,012,1527,556,00002,117,632stderr
4Jun 21, 2026 13:588,59215,273,9117,561,00002,117,632stderr
5Jun 21, 2026 13:588,61315,286,1997,580,00002,117,632stderr
6Jun 21, 2026 13:588,63215,004,5197,597,00002,117,632stderr
7Jun 21, 2026 13:588,65715,074,1997,619,00002,117,632stderr
8Jun 21, 2026 13:588,67515,077,3857,634,00002,117,632stderr
9Jun 21, 2026 13:588,71515,127,9687,670,00002,117,632stderr