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 4, 2026 08:57Victor MerckléVictor MerckléScore: 2,615Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 4, 2026 09:012,60510,501,5272,293,000024,576stderr
2Sep 4, 2026 09:012,60610,502,1082,294,000024,576stderr
3Sep 4, 2026 09:012,61010,471,7382,297,000024,576stderr
4Sep 4, 2026 09:012,61410,453,6912,301,000024,576stderr
5Sep 4, 2026 09:012,61510,467,3072,302,000024,576stderr
6Sep 4, 2026 09:012,61510,469,0762,302,000024,576stderr
7Sep 4, 2026 09:012,62511,066,1032,310,000024,576stderr
8Sep 4, 2026 09:012,62810,454,5562,313,000024,576stderr
9Sep 4, 2026 09:012,64510,514,4452,328,000024,576stderr