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 08:28Victor MerckléVictor MerckléScore: 4,545Success
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 08:314,40911,870,8853,880,00002,117,632stderr
2Jul 5, 2026 08:314,41311,729,9873,884,00002,117,632stderr
3Jul 5, 2026 08:314,42811,725,6843,897,00002,117,632stderr
4Jul 5, 2026 08:314,48211,805,2973,945,00002,117,632stderr
5Jul 5, 2026 08:314,54511,812,5734,000,00002,117,632stderr
6Jul 5, 2026 08:314,54811,769,7294,003,00002,117,632stderr
7Jul 5, 2026 08:314,55211,890,3654,006,00002,117,632stderr
8Jul 5, 2026 08:314,55312,093,4224,007,00002,117,632stderr
9Jul 5, 2026 08:315,16412,106,8874,545,00002,117,632stderr