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 19, 2026 20:03Victor MerckléVictor MerckléScore: 7,015Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 19, 2026 20:066,96813,576,3796,132,00002,113,536
2Jun 19, 2026 20:066,98913,712,5876,151,00002,113,536
3Jun 19, 2026 20:066,99313,634,0346,154,00002,113,536
4Jun 19, 2026 20:066,99513,620,3796,156,00002,113,536
5Jun 19, 2026 20:067,01513,637,7246,174,00002,113,536
6Jun 19, 2026 20:067,04813,631,8566,203,00002,113,536
7Jun 19, 2026 20:067,06013,650,0546,213,00002,113,536
8Jun 19, 2026 20:067,06213,712,5036,215,00002,113,536
9Jun 19, 2026 20:067,12013,741,3606,266,00002,113,536