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 17:45Victor MerckléVictor MerckléScore: 4,786Success
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 17:474,65211,767,6924,094,00002,117,632stderr
2Jun 29, 2026 17:474,65911,866,4324,100,00002,117,632stderr
3Jun 29, 2026 17:474,77812,158,3524,205,00002,117,632stderr
4Jun 29, 2026 17:474,78012,046,9054,207,00002,117,632stderr
5Jun 29, 2026 17:474,78611,843,3034,212,00002,117,632stderr
6Jun 29, 2026 17:474,78912,134,9304,215,00002,117,632stderr
7Jun 29, 2026 17:474,79311,843,4334,218,00002,117,632stderr
8Jun 29, 2026 17:474,81012,176,6624,233,00002,117,632stderr
9Jun 29, 2026 17:475,10912,429,9354,496,00002,117,632stderr