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 13, 2026 12:35Victor MerckléVictor MerckléScore: 7,087Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 13, 2026 12:387,05013,665,9716,204,00002,113,536
2Jun 13, 2026 12:387,07813,936,0946,229,00002,113,536
3Jun 13, 2026 12:387,07913,666,9676,230,00002,113,536
4Jun 13, 2026 12:387,08113,608,0426,232,00002,113,536
5Jun 13, 2026 12:387,08713,665,9206,237,00002,113,536
6Jun 13, 2026 12:387,08713,929,8736,237,00002,113,536
7Jun 13, 2026 12:387,10313,942,6546,251,00002,113,536
8Jun 13, 2026 12:387,11413,608,8276,261,00002,113,536
9Jun 13, 2026 12:387,23414,108,6286,366,00002,113,536