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 21, 2026 14:26Victor MerckléVictor MerckléScore: 7,339Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 21, 2026 14:297,26913,862,5796,397,00002,117,632stderr
2Jun 21, 2026 14:297,28613,936,5766,412,00002,117,632stderr
3Jun 21, 2026 14:297,31413,903,4616,437,00002,117,632stderr
4Jun 21, 2026 14:297,31513,907,4106,438,00002,117,632stderr
5Jun 21, 2026 14:297,33913,884,9546,459,00002,117,632stderr
6Jun 21, 2026 14:297,35513,901,6056,473,00002,117,632stderr
7Jun 21, 2026 14:297,35713,906,0036,475,00002,117,632stderr
8Jun 21, 2026 14:297,47813,998,0746,581,00002,117,632stderr
9Jun 21, 2026 14:297,85414,357,1666,912,00002,117,632stderr