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 listJun 13, 2026 12:13Victor MerckléVictor MerckléScore: 7,312Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 13, 2026 12:157,17513,790,8966,314,00002,113,536
2Jun 13, 2026 12:157,25614,025,9666,386,00002,113,536
3Jun 13, 2026 12:157,26413,771,1876,393,00002,113,536
4Jun 13, 2026 12:157,30213,635,9246,426,00002,113,536
5Jun 13, 2026 12:157,31214,095,4546,435,00002,113,536
6Jun 13, 2026 12:157,35613,898,9206,474,00002,113,536
7Jun 13, 2026 12:157,35913,952,4996,476,00002,113,536
8Jun 13, 2026 12:157,41214,223,0716,523,00002,113,536
9Jun 13, 2026 12:157,60213,934,5596,690,00002,113,536