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 11, 2026 07:38Victor MerckléVictor MerckléScore: 7,076Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 11, 2026 07:406,97113,450,1286,135,00002,113,536
2Jun 11, 2026 07:406,98513,438,4286,147,00002,113,536
3Jun 11, 2026 07:407,06413,465,1346,217,00002,113,536
4Jun 11, 2026 07:407,07613,420,5356,227,00002,113,536
5Jun 11, 2026 07:407,07613,691,6396,227,00002,113,536
6Jun 11, 2026 07:407,08213,528,4906,233,00002,113,536
7Jun 11, 2026 07:407,10113,459,2326,249,00002,113,536
8Jun 11, 2026 07:407,15413,552,1946,296,00002,113,536
9Jun 11, 2026 07:407,26313,659,8046,392,00002,113,536