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 3, 2026 12:55Victor MerckléVictor MerckléScore: 2,625Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 3, 2026 13:002,61510,445,3122,302,000024,576stderr
2Sep 3, 2026 13:002,61810,418,3602,304,000024,576stderr
3Sep 3, 2026 13:002,61911,036,8162,305,000024,576stderr
4Sep 3, 2026 13:002,61911,146,7512,305,000024,576stderr
5Sep 3, 2026 13:002,62511,088,3432,310,000024,576stderr
6Sep 3, 2026 13:002,62811,121,0222,313,000024,576stderr
7Sep 3, 2026 13:002,63510,424,7582,319,000024,576stderr
8Sep 3, 2026 13:002,64310,463,6622,326,000024,576stderr
9Sep 3, 2026 13:002,67910,470,4892,358,000024,576stderr