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:32Victor MerckléVictor MerckléScore: 4,881Success
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:354,76311,925,6044,192,00002,129,920stderr
2Jun 29, 2026 14:354,87011,984,1664,286,00002,129,920stderr
3Jun 29, 2026 14:354,88012,007,3434,295,00002,129,920stderr
4Jun 29, 2026 14:354,88112,027,9394,296,00002,129,920stderr
5Jun 29, 2026 14:354,88112,001,7204,296,00002,129,920stderr
6Jun 29, 2026 14:354,89612,339,4304,309,00002,129,920stderr
7Jun 29, 2026 14:354,91112,348,9594,322,00002,129,920stderr
8Jun 29, 2026 14:354,94512,391,4934,352,00002,129,920stderr
9Jun 29, 2026 14:355,09720,197,6774,486,00002,129,920stderr