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 15:00Victor MerckléVictor MerckléScore: 4,998Success
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 15:024,88412,083,2104,298,00002,113,536
2Jun 29, 2026 15:024,97512,334,5764,378,00002,113,536
3Jun 29, 2026 15:024,97912,385,1964,382,00002,113,536
4Jun 29, 2026 15:024,98812,045,6584,390,00002,113,536
5Jun 29, 2026 15:024,99812,344,0604,399,00002,113,536
6Jun 29, 2026 15:025,00112,595,8384,401,00002,113,536
7Jun 29, 2026 15:025,14512,221,4824,528,00002,113,536
8Jun 29, 2026 15:025,17512,476,4074,554,00002,113,536
9Jun 29, 2026 15:025,36312,699,5034,720,00002,113,536