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 01:55Victor MerckléVictor MerckléScore: 3,060Success
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 01:573,03910,967,9432,675,00002,117,632stderr
2Sep 2, 2026 01:573,04010,919,1832,676,00002,117,632stderr
3Sep 2, 2026 01:573,04410,892,8692,679,00002,117,632stderr
4Sep 2, 2026 01:573,05310,947,6752,687,00002,117,632stderr
5Sep 2, 2026 01:573,06011,101,0022,693,00002,117,632stderr
6Sep 2, 2026 01:573,12310,910,7852,749,00002,117,632stderr
7Sep 2, 2026 01:573,15511,319,3712,777,00002,117,632stderr
8Sep 2, 2026 01:573,15610,950,7892,778,00002,117,632stderr
9Sep 2, 2026 01:573,15910,929,4062,780,00002,117,632stderr