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:51Victor MerckléVictor MerckléScore: 4,778Success
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:544,65711,669,4504,099,00002,117,632stderr
2Jun 29, 2026 17:544,66411,835,1884,105,00002,117,632stderr
3Jun 29, 2026 17:544,68511,827,1334,123,00002,117,632stderr
4Jun 29, 2026 17:544,75011,919,7364,180,00002,117,632stderr
5Jun 29, 2026 17:544,77811,854,6384,205,00002,117,632stderr
6Jun 29, 2026 17:544,78411,951,7584,210,00002,117,632stderr
7Jun 29, 2026 17:544,79411,891,9314,219,00002,117,632stderr
8Jun 29, 2026 17:544,80411,866,8834,228,00002,117,632stderr
9Jun 29, 2026 17:545,17912,353,7724,558,00002,117,632stderr