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 26, 2026 18:28Victor MerckléVictor MerckléScore: 5,142Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 26, 2026 18:305,03111,933,0964,428,00002,113,536
2Jun 26, 2026 18:305,11212,007,4144,499,00002,113,536
3Jun 26, 2026 18:305,13212,007,8984,517,00002,113,536
4Jun 26, 2026 18:305,13812,009,5034,522,00002,113,536
5Jun 26, 2026 18:305,14212,267,9474,525,00002,113,536
6Jun 26, 2026 18:305,15011,988,6374,532,00002,113,536
7Jun 26, 2026 18:305,15412,234,8084,536,00002,113,536
8Jun 26, 2026 18:305,16512,067,4754,546,00002,113,536
9Jun 26, 2026 18:305,22512,402,6904,598,00002,113,536