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 listSep 2, 2026 00:18Victor MerckléVictor MerckléScore: 3,446Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 2, 2026 00:223,37611,742,2822,971,00002,117,632stderr
2Sep 2, 2026 00:223,37711,261,1692,972,00002,117,632stderr
3Sep 2, 2026 00:223,39711,322,7882,990,00002,117,632stderr
4Sep 2, 2026 00:223,43611,251,7413,024,00002,117,632stderr
5Sep 2, 2026 00:223,44611,285,1503,033,00002,117,632stderr
6Sep 2, 2026 00:223,45411,255,2933,040,00002,117,632stderr
7Sep 2, 2026 00:223,45611,319,0343,042,00002,117,632stderr
8Sep 2, 2026 00:223,45611,454,4643,042,00002,117,632stderr
9Sep 2, 2026 00:223,46011,221,2803,045,00002,117,632stderr