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 23, 2026 09:27Victor MerckléVictor MerckléScore: 5,479Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 23, 2026 09:295,35012,187,9814,708,00002,113,536
2Jun 23, 2026 09:295,38612,287,8134,740,00002,113,536
3Jun 23, 2026 09:295,43012,371,2474,779,00002,113,536
4Jun 23, 2026 09:295,47512,662,6594,818,00002,113,536
5Jun 23, 2026 09:295,47912,290,7524,822,00002,113,536
6Jun 23, 2026 09:295,48912,470,5094,831,00002,113,536
7Jun 23, 2026 09:295,53612,686,5444,872,00002,113,536
8Jun 23, 2026 09:295,57812,743,5964,909,00002,113,536
9Jun 23, 2026 09:295,81412,636,4475,117,00002,113,536