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 26, 2026 22:12Victor MerckléVictor MerckléScore: 5,162Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 26, 2026 22:145,06711,946,0234,459,00002,113,536
2Jun 26, 2026 22:145,08912,020,8674,479,00002,113,536
3Jun 26, 2026 22:145,09311,979,7794,482,00002,113,536
4Jun 26, 2026 22:145,15511,996,7514,537,00002,113,536
5Jun 26, 2026 22:145,16211,972,3494,543,00002,113,536
6Jun 26, 2026 22:145,16712,326,0094,547,00002,113,536
7Jun 26, 2026 22:145,17612,367,3754,555,00002,113,536
8Jun 26, 2026 22:145,17912,037,8184,558,00002,113,536
9Jun 26, 2026 22:145,21212,419,5874,587,00002,113,536