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 06:39Victor MerckléVictor MerckléScore: 4,540Success
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 06:424,42111,763,0033,891,00002,117,632stderr
2Jul 5, 2026 06:424,43211,747,0603,901,00002,117,632stderr
3Jul 5, 2026 06:424,43611,719,1273,904,00002,117,632stderr
4Jul 5, 2026 06:424,53511,763,7873,991,00002,117,632stderr
5Jul 5, 2026 06:424,54012,077,8163,996,00002,117,632stderr
6Jul 5, 2026 06:424,54511,781,1954,000,00002,117,632stderr
7Jul 5, 2026 06:424,54511,742,9614,000,00002,117,632stderr
8Jul 5, 2026 06:424,55411,764,7454,008,00002,117,632stderr
9Jul 5, 2026 06:424,57011,781,9544,022,00002,117,632stderr