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 00:07Victor MerckléVictor MerckléScore: 2,653Success
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 00:102,62910,480,2872,314,000024,576stderr
2Sep 3, 2026 00:102,63710,558,9582,321,000024,576stderr
3Sep 3, 2026 00:102,64510,442,6082,328,000024,576stderr
4Sep 3, 2026 00:102,65210,522,7322,334,000024,576stderr
5Sep 3, 2026 00:102,65310,438,4232,335,000024,576stderr
6Sep 3, 2026 00:102,65610,471,6102,338,000024,576stderr
7Sep 3, 2026 00:102,66110,503,0162,342,000024,576stderr
8Sep 3, 2026 00:102,77111,237,1002,439,000024,576stderr
9Sep 3, 2026 00:102,89010,684,9312,544,000024,576stderr