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 listSep 2, 2026 13:47Victor MerckléVictor MerckléScore: 3,157Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 2, 2026 13:503,04510,893,7592,680,00002,117,632stderr
2Sep 2, 2026 13:503,04610,931,3952,681,00002,117,632stderr
3Sep 2, 2026 13:503,05910,900,0102,692,00002,117,632stderr
4Sep 2, 2026 13:503,15011,505,3772,772,00002,117,632stderr
5Sep 2, 2026 13:503,15711,566,1752,779,00002,117,632stderr
6Sep 2, 2026 13:503,16111,200,3312,782,00002,117,632stderr
7Sep 2, 2026 13:503,16910,907,1372,789,00002,117,632stderr
8Sep 2, 2026 13:503,17010,922,5682,790,00002,117,632stderr
9Sep 2, 2026 13:503,17611,561,6642,795,00002,117,632stderr