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 12:59Victor MerckléVictor MerckléScore: 5,085Success
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 13:024,97312,245,2914,377,00002,117,632stderr
2Jul 2, 2026 13:024,97812,181,0344,381,00002,117,632stderr
3Jul 2, 2026 13:024,98012,187,2514,383,00002,117,632stderr
4Jul 2, 2026 13:025,07812,243,2944,469,00002,117,632stderr
5Jul 2, 2026 13:025,08512,226,5564,475,00002,117,632stderr
6Jul 2, 2026 13:025,08812,266,6054,478,00002,117,632stderr
7Jul 2, 2026 13:025,09012,589,8264,480,00002,117,632stderr
8Jul 2, 2026 13:025,11712,562,5504,503,00002,117,632stderr
9Jul 2, 2026 13:025,23612,376,4224,608,00002,117,632stderr