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 20:48Victor MerckléVictor MerckléScore: 5,073Success
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 20:515,03911,951,1744,435,00002,113,536
2Jun 26, 2026 20:515,04511,958,7054,440,00002,113,536
3Jun 26, 2026 20:515,04811,931,2214,443,00002,113,536
4Jun 26, 2026 20:515,05611,948,0644,450,00002,113,536
5Jun 26, 2026 20:515,07312,007,3834,465,00002,113,536
6Jun 26, 2026 20:515,13912,003,4654,523,00002,113,536
7Jun 26, 2026 20:515,14011,943,3774,524,00002,113,536
8Jun 26, 2026 20:515,16011,939,1284,541,00002,113,536
9Jun 26, 2026 20:515,16312,356,0784,544,00002,113,536