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 12:33Victor MerckléVictor MerckléScore: 3,153Success
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 12:363,04410,917,7152,679,00002,117,632stderr
2Sep 2, 2026 12:363,14011,567,3192,764,00002,117,632stderr
3Sep 2, 2026 12:363,14311,523,6392,766,00002,117,632stderr
4Sep 2, 2026 12:363,15310,924,7882,775,00002,117,632stderr
5Sep 2, 2026 12:363,15312,649,3642,775,00002,117,632stderr
6Sep 2, 2026 12:363,17310,905,5442,793,00002,117,632stderr
7Sep 2, 2026 12:363,17511,560,5392,794,00002,117,632stderr
8Sep 2, 2026 12:363,18510,953,9742,803,00002,117,632stderr
9Sep 2, 2026 12:363,29211,640,2952,897,00002,117,632stderr