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 22:40Victor MerckléVictor MerckléScore: 44,067Success
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 22:4244,05447,511,35038,768,000024,576stderr
2Sep 2, 2026 22:4244,05546,906,86838,769,000024,576stderr
3Sep 2, 2026 22:4244,05647,561,38038,770,000024,576stderr
4Sep 2, 2026 22:4244,06447,629,11938,777,000024,576stderr
5Sep 2, 2026 22:4244,06746,908,88238,779,000024,576stderr
6Sep 2, 2026 22:4244,07347,581,34138,785,000024,576stderr
7Sep 2, 2026 22:4244,08248,226,77238,793,000024,576stderr
8Sep 2, 2026 22:4244,27147,154,64738,959,000024,576stderr
9Sep 2, 2026 22:4244,31347,154,21038,996,000024,576stderr