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 19, 2026 18:01Victor MerckléVictor MerckléScore: 7,048Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 19, 2026 18:047,01313,576,9656,172,00002,113,536
2Jun 19, 2026 18:047,02113,684,4906,179,00002,113,536
3Jun 19, 2026 18:047,03513,580,8256,191,00002,113,536
4Jun 19, 2026 18:047,03513,614,5516,191,00002,113,536
5Jun 19, 2026 18:047,04817,703,1356,203,00002,113,536
6Jun 19, 2026 18:047,05213,922,6036,206,00002,113,536
7Jun 19, 2026 18:047,06413,895,4456,217,00002,113,536
8Jun 19, 2026 18:047,10913,511,3396,256,00002,113,536
9Jun 19, 2026 18:047,24814,109,3936,379,00002,113,536