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 15:31Victor MerckléVictor MerckléScore: 3,895Success
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 15:343,79411,574,5603,339,00002,117,632stderr
2Aug 19, 2026 15:343,81011,586,1253,353,00002,117,632stderr
3Aug 19, 2026 15:343,83613,105,9573,376,00002,117,632stderr
4Aug 19, 2026 15:343,88511,550,0963,419,00002,117,632stderr
5Aug 19, 2026 15:343,89511,571,9853,428,00002,117,632stderr
6Aug 19, 2026 15:343,90711,668,1333,439,00002,117,632stderr
7Aug 19, 2026 15:343,90711,580,9413,439,00002,117,632stderr
8Aug 19, 2026 15:343,90711,541,7333,439,00002,117,632stderr
9Aug 19, 2026 15:343,91411,587,7243,445,00002,117,632stderr