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 21:24Victor MerckléVictor MerckléScore: 5,372Success
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 21:275,26012,127,7964,629,00002,113,536
2Jun 26, 2026 21:275,26712,135,8134,635,00002,113,536
3Jun 26, 2026 21:275,27212,110,0034,640,00002,113,536
4Jun 26, 2026 21:275,32212,174,6644,684,00002,113,536
5Jun 26, 2026 21:275,37212,176,7504,728,00002,113,536
6Jun 26, 2026 21:275,38912,554,9954,743,00002,113,536
7Jun 26, 2026 21:275,38912,229,2984,743,00002,113,536
8Jun 26, 2026 21:275,39412,346,9544,747,00002,113,536
9Jun 26, 2026 21:275,39512,198,9644,748,00002,113,536