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:47Victor MerckléVictor MerckléScore: 5,392Success
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:515,26112,119,3724,630,00002,113,536
2Jun 26, 2026 18:515,27612,178,5864,643,00002,113,536
3Jun 26, 2026 18:515,35612,197,6334,714,00002,113,536
4Jun 26, 2026 18:515,37112,545,6214,727,00002,113,536
5Jun 26, 2026 18:515,39212,186,2194,745,00002,113,536
6Jun 26, 2026 18:515,40312,203,6224,755,00002,113,536
7Jun 26, 2026 18:515,43012,559,4484,779,00002,113,536
8Jun 26, 2026 18:515,59313,971,5374,922,00002,113,536
9Jun 26, 2026 18:515,63712,498,9054,961,00002,113,536