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 listSep 2, 2026 03:18Victor MerckléVictor MerckléScore: 3,210Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 2, 2026 03:213,05510,883,7482,689,00002,117,632stderr
2Sep 2, 2026 03:213,05910,951,5542,692,00002,117,632stderr
3Sep 2, 2026 03:213,06510,919,6402,698,00002,117,632stderr
4Sep 2, 2026 03:213,18610,972,9682,804,00002,117,632stderr
5Sep 2, 2026 03:213,21010,945,9922,825,00002,117,632stderr
6Sep 2, 2026 03:213,27611,020,2272,883,00002,117,632stderr
7Sep 2, 2026 03:213,32311,148,7372,925,00002,117,632stderr
8Sep 2, 2026 03:213,33611,080,8572,936,00002,117,632stderr
9Sep 2, 2026 03:213,36711,786,7602,963,00002,117,632stderr