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 9, 2026 11:58Victor MerckléVictor MerckléScore: 3,661Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 9, 2026 12:013,62611,162,2743,191,00002,117,632stderr
2Jul 9, 2026 12:013,63011,127,2723,195,00002,117,632stderr
3Jul 9, 2026 12:013,63211,364,8763,197,00002,117,632stderr
4Jul 9, 2026 12:013,64511,125,0113,208,00002,117,632stderr
5Jul 9, 2026 12:013,66111,162,9853,222,00002,117,632stderr
6Jul 9, 2026 12:013,71911,096,1583,273,00002,117,632stderr
7Jul 9, 2026 12:013,73411,173,8123,286,00002,117,632stderr
8Jul 9, 2026 12:013,74411,137,4843,295,00002,117,632stderr
9Jul 9, 2026 12:013,74711,124,9103,298,00002,117,632stderr