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 2, 2026 05:52Victor MerckléVictor MerckléScore: 4,702Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 2, 2026 05:554,57211,771,6614,024,00002,117,632stderr
2Jul 2, 2026 05:554,60111,764,9294,049,00002,117,632stderr
3Jul 2, 2026 05:554,60211,835,6804,050,00002,117,632stderr
4Jul 2, 2026 05:554,67511,846,4664,114,00002,117,632stderr
5Jul 2, 2026 05:554,70211,875,9834,138,00002,117,632stderr
6Jul 2, 2026 05:554,71111,835,8804,146,00002,117,632stderr
7Jul 2, 2026 05:554,71711,809,8954,151,00002,117,632stderr
8Jul 2, 2026 05:554,72111,829,0624,155,00002,117,632stderr
9Jul 2, 2026 05:555,27112,764,1983,075,0001,564,0002,117,632stderr