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 19:15Victor 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 19:17011,501,3633,244,00002,117,632expected "51002611814297 ", got "51002611798500 "stderr
2Jul 9, 2026 19:173,57911,023,3603,150,00002,117,632stderr
3Jul 9, 2026 19:173,58011,031,4783,151,00002,117,632stderr
4Jul 9, 2026 19:173,59611,069,2513,165,00002,117,632stderr
5Jul 9, 2026 19:173,62611,046,8053,191,00002,117,632stderr
6Jul 9, 2026 19:173,68711,151,1643,245,00002,117,632stderr
7Jul 9, 2026 19:173,68811,131,7693,246,00002,117,632stderr
8Jul 9, 2026 19:173,69311,118,2463,250,00002,117,632stderr
9Jul 9, 2026 19:173,70011,455,7523,256,00002,117,632stderr