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 8, 2026 21:24Victor MerckléVictor MerckléScore: 7,547Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 8, 2026 21:287,44014,146,0286,548,00002,113,536
2Jun 8, 2026 21:287,47514,109,4936,578,00002,113,536
3Jun 8, 2026 21:287,53414,362,9046,630,00002,113,536
4Jun 8, 2026 21:287,54614,207,8496,641,00002,113,536
5Jun 8, 2026 21:287,54714,637,3456,642,00002,113,536
6Jun 8, 2026 21:287,55114,277,1736,645,00002,113,536
7Jun 8, 2026 21:287,55214,374,1276,646,00002,113,536
8Jun 8, 2026 21:287,56714,365,8936,659,00002,113,536
9Jun 8, 2026 21:287,84814,502,3066,907,00002,113,536