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 8, 2026 01:04Victor MerckléVictor MerckléScore: 3,650Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 8, 2026 01:073,60211,085,2963,170,00002,117,632stderr
2Jul 8, 2026 01:073,60911,068,4603,176,00002,117,632stderr
3Jul 8, 2026 01:073,61211,074,6873,179,00002,117,632stderr
4Jul 8, 2026 01:073,62811,111,4523,193,00002,117,632stderr
5Jul 8, 2026 01:073,65011,058,7763,212,00002,117,632stderr
6Jul 8, 2026 01:073,69311,107,5913,250,00002,117,632stderr
7Jul 8, 2026 01:073,70611,028,5833,262,00002,125,824stderr
8Jul 8, 2026 01:073,70711,030,9493,263,00002,117,632stderr
9Jul 8, 2026 01:073,75211,083,1773,302,00002,117,632stderr