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:18Victor MerckléVictor MerckléScore: 7,042Success
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:206,92813,607,7076,097,00002,113,536
2Jun 19, 2026 18:206,93613,565,3476,104,00002,113,536
3Jun 19, 2026 18:206,97113,571,7886,135,00002,113,536
4Jun 19, 2026 18:207,02313,602,4686,181,00002,113,536
5Jun 19, 2026 18:207,04213,420,4636,197,00002,113,536
6Jun 19, 2026 18:207,04713,911,7756,202,00002,113,536
7Jun 19, 2026 18:207,07313,723,8246,225,00002,113,536
8Jun 19, 2026 18:207,09813,928,3416,247,00002,113,536
9Jun 19, 2026 18:207,14013,933,7396,284,00002,113,536