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 26, 2026 21:30Victor MerckléVictor MerckléScore: 5,159Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 26, 2026 21:325,06711,999,6694,459,00002,113,536
2Jun 26, 2026 21:325,06711,971,3914,459,00002,113,536
3Jun 26, 2026 21:325,07711,984,6624,468,00002,113,536
4Jun 26, 2026 21:325,12711,976,1054,512,00002,113,536
5Jun 26, 2026 21:325,15912,019,3384,540,00002,113,536
6Jun 26, 2026 21:325,16012,104,9794,541,00002,113,536
7Jun 26, 2026 21:325,19812,360,5534,575,00002,113,536
8Jun 26, 2026 21:325,24212,412,0414,613,00002,113,536
9Jun 26, 2026 21:325,31112,171,4054,674,00002,113,536