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 listAug 19, 2026 16:47Victor MerckléVictor MerckléScore: 3,778Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 19, 2026 16:553,67911,538,6523,238,00002,117,632stderr
2Aug 19, 2026 16:553,68111,404,3083,240,00002,117,632stderr
3Aug 19, 2026 16:553,70111,467,0433,257,00002,117,632stderr
4Aug 19, 2026 16:553,70511,479,9053,261,00002,117,632stderr
5Aug 19, 2026 16:553,77811,452,7793,325,00002,117,632stderr
6Aug 19, 2026 16:553,79411,447,8773,339,00002,117,632stderr
7Aug 19, 2026 16:553,80911,426,1823,352,00002,117,632stderr
8Aug 19, 2026 16:554,04011,676,4982,530,0001,026,0002,117,632stderr
9Aug 19, 2026 16:554,04611,711,4742,133,0001,428,0002,117,632stderr