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 15, 2026 17:20Victor MerckléVictor MerckléScore: 7,222Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 15, 2026 17:297,08413,601,0086,234,00002,113,536
2Jun 15, 2026 17:297,18613,659,7636,324,00002,113,536
3Jun 15, 2026 17:297,19813,606,8006,335,00002,113,536
4Jun 15, 2026 17:297,20113,694,9276,337,00002,113,536
5Jun 15, 2026 17:297,22213,653,7326,356,00002,113,536
6Jun 15, 2026 17:297,29613,728,6956,421,00002,113,536
7Jun 15, 2026 17:297,33513,801,0296,455,00002,113,536
8Jun 15, 2026 17:297,34013,796,4076,460,00002,113,536
9Jun 15, 2026 17:297,42013,874,5306,530,00002,113,536