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 4, 2026 11:09Victor MerckléVictor MerckléScore: 4,535Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 4, 2026 11:114,39611,728,3553,869,00002,117,632stderr
2Jul 4, 2026 11:114,40911,722,3473,880,00002,117,632stderr
3Jul 4, 2026 11:114,43911,713,3193,907,00002,117,632stderr
4Jul 4, 2026 11:114,53111,766,6833,988,00002,117,632stderr
5Jul 4, 2026 11:114,53511,876,9733,991,00002,117,632stderr
6Jul 4, 2026 11:114,53711,825,8083,993,00002,117,632stderr
7Jul 4, 2026 11:114,54011,770,1723,996,00002,117,632stderr
8Jul 4, 2026 11:114,54512,058,4734,000,00002,117,632stderr
9Jul 4, 2026 11:114,78512,327,1004,211,00002,117,632stderr