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 10:07Victor MerckléVictor MerckléScore: 3,144Success
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 10:113,04410,937,6892,679,00002,117,632stderr
2Sep 2, 2026 10:113,06110,923,3572,694,00002,117,632stderr
3Sep 2, 2026 10:113,07710,915,8432,708,00002,117,632stderr
4Sep 2, 2026 10:113,14010,902,2782,764,00002,117,632stderr
5Sep 2, 2026 10:113,14410,890,6112,767,00002,117,632stderr
6Sep 2, 2026 10:113,14810,962,8702,771,00002,117,632stderr
7Sep 2, 2026 10:113,15010,911,3392,772,00002,117,632stderr
8Sep 2, 2026 10:113,15210,949,0542,774,00002,117,632stderr
9Sep 2, 2026 10:113,24618,051,9082,857,00002,117,632stderr