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 19, 2026 19:24Victor MerckléVictor MerckléScore: 7,047Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 19, 2026 19:266,95013,680,9556,116,00002,113,536
2Jun 19, 2026 19:266,95413,611,8506,120,00002,113,536
3Jun 19, 2026 19:266,97313,667,1786,137,00002,113,536
4Jun 19, 2026 19:267,04215,121,3426,197,00002,113,536
5Jun 19, 2026 19:267,04713,654,6726,202,00002,113,536
6Jun 19, 2026 19:267,05713,692,1766,211,00002,113,536
7Jun 19, 2026 19:267,05913,665,9676,212,00002,113,536
8Jun 19, 2026 19:267,07013,658,9376,222,00002,113,536
9Jun 19, 2026 19:267,07213,431,5016,224,00002,113,536