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 19:12Victor MerckléVictor MerckléScore: 5,176Success
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 19:155,08711,978,2694,477,00002,113,536
2Jun 26, 2026 19:155,17012,018,4634,550,00002,113,536
3Jun 26, 2026 19:155,17112,013,7184,551,00002,113,536
4Jun 26, 2026 19:155,17512,314,8974,554,00002,113,536
5Jun 26, 2026 19:155,17612,048,1684,555,00002,113,536
6Jun 26, 2026 19:155,18412,356,7274,562,00002,113,536
7Jun 26, 2026 19:155,19411,986,6334,571,00002,113,536
8Jun 26, 2026 19:155,30312,468,5204,667,00002,113,536
9Jun 26, 2026 19:155,58612,669,1674,916,00002,113,536