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 7, 2026 17:48Victor MerckléVictor MerckléScore: 3,611Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 7, 2026 17:513,59511,516,6893,164,00002,117,632stderr
2Jul 7, 2026 17:513,59811,037,4953,167,00002,117,632stderr
3Jul 7, 2026 17:513,60110,972,9203,169,00002,117,632stderr
4Jul 7, 2026 17:513,60711,022,3783,175,00002,117,632stderr
5Jul 7, 2026 17:513,61111,095,5823,178,00002,117,632stderr
6Jul 7, 2026 17:513,69511,060,0483,252,00002,117,632stderr
7Jul 7, 2026 17:513,70711,074,1203,263,00002,117,632stderr
8Jul 7, 2026 17:513,72611,635,2363,279,00002,117,632stderr
9Jul 7, 2026 17:513,89711,308,7523,430,00002,117,632stderr