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 listJul 5, 2026 10:23Victor MerckléVictor MerckléScore: 4,747Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 5, 2026 10:264,61011,844,5284,057,00002,117,632stderr
2Jul 5, 2026 10:264,62111,979,0874,067,00002,117,632stderr
3Jul 5, 2026 10:264,63211,951,3184,077,00002,117,632stderr
4Jul 5, 2026 10:264,73911,936,0864,171,00002,117,632stderr
5Jul 5, 2026 10:264,74712,274,8314,178,00002,117,632stderr
6Jul 5, 2026 10:264,75211,943,5114,182,00002,117,632stderr
7Jul 5, 2026 10:264,75512,010,9264,185,00002,117,632stderr
8Jul 5, 2026 10:264,84012,176,6734,260,00002,117,632stderr
9Jul 5, 2026 10:265,04012,248,3864,436,00002,117,632stderr