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:50Victor MerckléVictor MerckléError
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 11:53011,016,8733,145,00002,117,632expected "51232179495720 ", got "51232179487651 "stderr
2Jul 9, 2026 11:533,57911,039,7083,150,00002,117,632stderr
3Jul 9, 2026 11:533,58110,997,2823,152,00002,117,632stderr
4Jul 9, 2026 11:533,58911,056,9063,159,00002,117,632stderr
5Jul 9, 2026 11:533,67611,040,1963,235,00002,117,632stderr
6Jul 9, 2026 11:533,68111,049,4673,240,00002,117,632stderr
7Jul 9, 2026 11:533,68611,181,5873,244,00002,117,632stderr
8Jul 9, 2026 11:533,69211,125,9903,249,00002,117,632stderr
9Jul 9, 2026 11:533,75411,130,3493,304,00002,117,632stderr