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 29, 2026 13:00Victor MerckléVictor MerckléScore: 5,146Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 29, 2026 13:025,11312,336,6694,500,00002,113,536
2Jun 29, 2026 13:025,12112,153,9414,507,00002,113,536
3Jun 29, 2026 13:025,12912,423,8154,514,00002,113,536
4Jun 29, 2026 13:025,14312,277,3764,526,00002,113,536
5Jun 29, 2026 13:025,14612,202,3794,529,00002,113,536
6Jun 29, 2026 13:025,14812,200,0214,531,00002,113,536
7Jun 29, 2026 13:025,17612,245,3154,555,00002,113,536
8Jun 29, 2026 13:025,24012,313,5914,612,00002,113,536
9Jun 29, 2026 13:025,27213,965,4194,640,00002,113,536