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 26, 2026 20:59Victor MerckléVictor MerckléScore: 5,157Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 26, 2026 21:025,04711,983,8804,442,00002,113,536
2Jun 26, 2026 21:025,07311,965,7884,465,00002,113,536
3Jun 26, 2026 21:025,15211,969,2174,534,00002,113,536
4Jun 26, 2026 21:025,15612,001,5994,538,00002,113,536
5Jun 26, 2026 21:025,15712,040,4014,539,00002,113,536
6Jun 26, 2026 21:025,16412,316,0504,545,00002,113,536
7Jun 26, 2026 21:025,16412,027,0034,545,00002,113,536
8Jun 26, 2026 21:025,16511,974,6044,546,00002,113,536
9Jun 26, 2026 21:025,26012,096,7884,629,00002,113,536