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 17:51Victor MerckléVictor MerckléScore: 201,118Success
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 17:54199,809183,525,956171,843,0003,989,0002,125,824stderr
2Jun 26, 2026 17:54200,330185,188,530172,300,0003,991,0002,121,728stderr
3Jun 26, 2026 17:54200,350183,948,017172,288,0004,020,0002,121,728stderr
4Jun 26, 2026 17:54200,819184,588,058172,757,0003,964,0002,121,728stderr
5Jun 26, 2026 17:54201,118184,663,381173,007,0003,977,0002,121,728stderr
6Jun 26, 2026 17:54201,565185,007,291173,291,0004,087,0002,125,824stderr
7Jun 26, 2026 17:54201,935188,522,260173,736,0003,967,0002,121,728stderr
8Jun 26, 2026 17:54202,250185,936,855173,996,0003,984,0002,121,728stderr
9Jun 26, 2026 17:54202,534186,104,378173,554,0004,676,0002,121,728stderr