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:01Victor MerckléVictor MerckléError
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:02012,224,8924,253,00002,113,536expected "51092840956433 ", got "51092820886492 "
2Jun 29, 2026 14:024,83712,284,3334,257,00002,113,536
3Jun 29, 2026 14:024,85713,101,5874,275,00002,113,536