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 12:38Victor MerckléVictor MerckléScore: 5,273Success
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 12:415,11112,218,9114,498,00002,113,536
2Jun 29, 2026 12:415,12112,275,2784,507,00002,113,536
3Jun 29, 2026 12:415,22512,539,6824,598,00002,113,536
4Jun 29, 2026 12:415,25312,359,0054,623,00002,113,536
5Jun 29, 2026 12:415,27312,336,3464,641,00002,113,536
6Jun 29, 2026 12:415,28612,312,8584,652,00002,113,536
7Jun 29, 2026 12:415,29312,322,3654,658,00002,113,536
8Jun 29, 2026 12:415,30412,376,3504,668,00002,113,536
9Jun 29, 2026 12:415,35312,405,0824,711,00002,113,536