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 9, 2026 19:40Victor MerckléVictor MerckléScore: 7,507Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 9, 2026 19:437,46517,852,9436,570,00002,113,536
2Jun 9, 2026 19:437,49413,719,0946,595,00002,113,536
3Jun 9, 2026 19:437,50413,802,3156,604,00002,113,536
4Jun 9, 2026 19:437,50713,785,2856,607,00002,113,536
5Jun 9, 2026 19:437,50713,765,4226,607,00002,113,536
6Jun 9, 2026 19:437,51313,798,4156,612,00002,113,536
7Jun 9, 2026 19:437,52014,220,9846,618,00002,113,536
8Jun 9, 2026 19:437,52514,094,4926,622,00002,113,536
9Jun 9, 2026 19:437,52513,851,6866,622,00002,113,536