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 27, 2026 19:54Victor MerckléVictor MerckléScore: 5,164Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2026 19:565,05012,268,9614,444,00002,113,536
2Jun 27, 2026 19:565,05912,223,0824,452,00002,113,536
3Jun 27, 2026 19:565,06112,189,9494,454,00002,113,536
4Jun 27, 2026 19:565,06512,208,4264,458,00002,113,536
5Jun 27, 2026 19:565,16412,242,0474,545,00002,113,536
6Jun 27, 2026 19:565,17512,213,4904,554,00002,113,536
7Jun 27, 2026 19:565,18912,522,9214,567,00002,113,536
8Jun 27, 2026 19:565,22512,260,4074,598,00002,113,536
9Jun 27, 2026 19:565,35912,674,6304,716,00002,113,536