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 2, 2026 11:29Victor 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 2, 2026 11:31011,912,6954,103,00002,117,632expected "51172151479479 ", got "51172557219160 "stderr
2Jul 2, 2026 11:314,65711,841,4664,099,00002,117,632stderr
3Jul 2, 2026 11:314,66511,824,8584,106,00002,117,632stderr
4Jul 2, 2026 11:314,67111,908,7794,111,00002,117,632stderr
5Jul 2, 2026 11:314,67211,895,6954,112,00002,117,632stderr
6Jul 2, 2026 11:314,75311,913,4944,183,00002,117,632stderr
7Jul 2, 2026 11:314,80111,947,3914,225,00002,117,632stderr
8Jul 2, 2026 11:314,81112,245,6194,234,00002,117,632stderr
9Jul 2, 2026 11:314,81111,959,9214,234,00002,117,632stderr