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 18:22Victor MerckléVictor MerckléScore: 3,715Success
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 18:253,60911,080,6063,176,00002,117,632stderr
2Jul 7, 2026 18:253,62211,074,5843,188,00002,117,632stderr
3Jul 7, 2026 18:253,62211,038,2803,188,00002,117,632stderr
4Jul 7, 2026 18:253,70611,065,1643,262,00002,117,632stderr
5Jul 7, 2026 18:253,71511,501,5283,270,00002,117,632stderr
6Jul 7, 2026 18:253,72111,159,8803,275,00002,117,632stderr
7Jul 7, 2026 18:253,73711,092,4203,289,00002,117,632stderr
8Jul 7, 2026 18:253,75411,134,0613,304,00002,117,632stderr
9Jul 7, 2026 18:253,92811,274,5132,440,0001,017,0002,117,632stderr