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 5, 2026 11:54Victor MerckléVictor MerckléScore: 13,693Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 5, 2026 11:5613,52919,427,49711,906,00002,113,536
2Jun 5, 2026 11:5613,54819,410,85211,923,00002,113,536
3Jun 5, 2026 11:5613,58519,426,66711,955,00002,113,536
4Jun 5, 2026 11:5613,65219,566,36412,014,00002,113,536
5Jun 5, 2026 11:5613,69319,505,05012,050,00002,113,536
6Jun 5, 2026 11:5613,69819,495,50312,055,00002,113,536
7Jun 5, 2026 11:5613,70119,509,23612,057,00002,113,536
8Jun 5, 2026 11:5613,73919,501,92012,091,00002,113,536
9Jun 5, 2026 11:5613,78619,828,41612,132,00002,113,536