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 23:23Victor MerckléVictor MerckléScore: 46,801Success
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 23:2646,10448,853,83438,546,0002,026,00024,576stderr
2Sep 2, 2026 23:2646,62849,309,59638,946,0002,087,00024,576stderr
3Sep 2, 2026 23:2646,71850,199,08039,060,0002,052,00024,576stderr
4Sep 2, 2026 23:2646,76450,174,23039,101,0002,052,00024,576stderr
5Sep 2, 2026 23:2646,80150,240,49138,972,0002,213,00024,576stderr
6Sep 2, 2026 23:2646,88550,219,30839,085,0002,174,00024,576stderr
7Sep 2, 2026 23:2646,92349,622,62639,038,0002,255,00024,576stderr
8Sep 2, 2026 23:2646,94850,267,19639,007,0002,308,00024,576stderr
9Sep 2, 2026 23:2647,18050,497,68339,495,0002,024,00024,576stderr