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 29, 2026 14:21Victor MerckléVictor MerckléScore: 9,643Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 29, 2026 14:249,53816,109,1558,394,00002,129,920stderr
2Jun 29, 2026 14:249,61916,142,7048,465,00002,129,920stderr
3Jun 29, 2026 14:249,63216,144,3538,477,00002,129,920stderr
4Jun 29, 2026 14:249,64016,150,6808,484,00002,129,920stderr
5Jun 29, 2026 14:249,64316,189,5308,486,00002,129,920stderr
6Jun 29, 2026 14:249,64616,426,9838,489,00002,129,920stderr
7Jun 29, 2026 14:249,64816,164,8468,491,00002,129,920stderr
8Jun 29, 2026 14:249,65916,437,4898,500,00002,129,920stderr
9Jun 29, 2026 14:249,67016,218,2528,510,00002,129,920stderr