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 27, 2026 19:29Victor MerckléVictor MerckléScore: 5,198Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 27, 2026 19:325,07312,135,1484,465,00002,113,536
2Jun 27, 2026 19:325,08112,183,4974,472,00002,113,536
3Jun 27, 2026 19:325,10412,208,3414,492,00002,113,536
4Jun 27, 2026 19:325,18912,232,9274,567,00002,113,536
5Jun 27, 2026 19:325,19812,249,7524,575,00002,113,536
6Jun 27, 2026 19:325,21212,486,3534,587,00002,113,536
7Jun 27, 2026 19:325,21412,225,9574,589,00002,113,536
8Jun 27, 2026 19:325,22012,038,2874,594,00002,113,536
9Jun 27, 2026 19:325,22512,293,6784,598,00002,113,536