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 1, 2026 03:10Victor MerckléVictor MerckléScore: 4,709Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 1, 2026 03:134,54611,786,1984,001,00002,117,632stderr
2Jul 1, 2026 03:134,58211,772,6874,033,00002,117,632stderr
3Jul 1, 2026 03:134,68811,752,8344,126,00002,117,632stderr
4Jul 1, 2026 03:134,70312,097,9654,139,00002,117,632stderr
5Jul 1, 2026 03:134,70911,766,0334,144,00002,117,632stderr
6Jul 1, 2026 03:134,71411,834,4414,149,00002,117,632stderr
7Jul 1, 2026 03:134,72312,114,6644,157,00002,117,632stderr
8Jul 1, 2026 03:134,72311,835,1354,157,00002,117,632stderr
9Jul 1, 2026 03:134,73512,135,0954,167,00002,117,632stderr