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 8, 2026 22:38Victor MerckléVictor MerckléScore: 3,696Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 8, 2026 22:403,58611,070,2943,156,00002,117,632stderr
2Jul 8, 2026 22:403,61011,096,0003,177,00002,117,632stderr
3Jul 8, 2026 22:403,61311,054,0133,180,00002,117,632stderr
4Jul 8, 2026 22:403,69511,083,9593,252,00002,117,632stderr
5Jul 8, 2026 22:403,69611,065,1823,253,00002,117,632stderr
6Jul 8, 2026 22:403,71011,578,5823,265,00002,117,632stderr
7Jul 8, 2026 22:403,71311,087,6923,268,00002,117,632stderr
8Jul 8, 2026 22:403,71711,589,6283,271,00002,117,632stderr
9Jul 8, 2026 22:403,84511,207,6833,384,00002,117,632stderr