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 7, 2026 19:14Victor MerckléVictor MerckléScore: 4,051Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 7, 2026 19:174,02111,336,2853,539,00002,117,632stderr
2Jul 7, 2026 19:174,02611,541,7513,543,00002,117,632stderr
3Jul 7, 2026 19:174,03711,369,2853,553,00002,117,632stderr
4Jul 7, 2026 19:174,04311,382,7043,558,00002,117,632stderr
5Jul 7, 2026 19:174,05111,416,2253,565,00002,117,632stderr
6Jul 7, 2026 19:174,05911,445,0733,572,00002,117,632stderr
7Jul 7, 2026 19:174,11111,395,3703,618,00002,117,632stderr
8Jul 7, 2026 19:174,13011,603,4203,635,00002,117,632stderr
9Jul 7, 2026 19:174,23012,656,5493,723,00002,117,632stderr