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 listJul 5, 2026 01:02Victor MerckléVictor MerckléScore: 4,544Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 5, 2026 01:054,43811,675,9583,906,00002,117,632stderr
2Jul 5, 2026 01:054,45313,309,8313,919,00002,117,632stderr
3Jul 5, 2026 01:054,46811,818,6773,932,00002,117,632stderr
4Jul 5, 2026 01:054,47212,167,2703,936,00002,117,632stderr
5Jul 5, 2026 01:054,54411,866,1933,999,00002,117,632stderr
6Jul 5, 2026 01:054,54511,768,1194,000,00002,117,632stderr
7Jul 5, 2026 01:054,57812,127,6314,029,00002,117,632stderr
8Jul 5, 2026 01:054,60112,145,2784,049,00002,117,632stderr
9Jul 5, 2026 01:054,72112,092,5394,155,00002,117,632stderr