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:28Victor MerckléVictor MerckléScore: 3,177Success
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:313,06810,908,5362,700,00002,117,632stderr
2Sep 2, 2026 13:313,08211,030,0542,713,00002,117,632stderr
3Sep 2, 2026 13:313,08610,978,0852,716,00002,117,632stderr
4Sep 2, 2026 13:313,17511,590,3952,794,00002,117,632stderr
5Sep 2, 2026 13:313,17711,020,7172,796,00002,117,632stderr
6Sep 2, 2026 13:313,22511,042,9042,838,00002,117,632stderr
7Sep 2, 2026 13:313,36911,168,1362,965,00002,117,632stderr
8Sep 2, 2026 13:313,36911,711,8222,965,00002,117,632stderr
9Sep 2, 2026 13:313,40711,333,4092,999,00002,117,632stderr