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 22:59Victor MerckléVictor MerckléScore: 4,771Success
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 23:014,66211,821,8354,103,00002,117,632stderr
2Jun 29, 2026 23:014,67311,875,3134,113,00002,117,632stderr
3Jun 29, 2026 23:014,67611,911,4934,115,00002,117,632stderr
4Jun 29, 2026 23:014,76811,851,9324,196,00002,117,632stderr
5Jun 29, 2026 23:014,77112,232,3174,199,00002,117,632stderr
6Jun 29, 2026 23:014,80212,202,6484,226,00002,117,632stderr
7Jun 29, 2026 23:014,80512,189,2694,229,00002,117,632stderr
8Jun 29, 2026 23:014,81011,868,4564,233,00002,117,632stderr
9Jun 29, 2026 23:015,06512,402,8004,458,00002,117,632stderr