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 00:33Victor MerckléVictor MerckléScore: 3,077Success
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 00:363,06210,907,2032,695,00002,117,632stderr
2Sep 2, 2026 00:363,06411,154,2002,697,00002,117,632stderr
3Sep 2, 2026 00:363,06410,994,5682,697,00002,117,632stderr
4Sep 2, 2026 00:363,06510,955,6822,698,00002,117,632stderr
5Sep 2, 2026 00:363,07710,864,0982,708,00002,117,632stderr
6Sep 2, 2026 00:363,08710,938,6852,717,00002,117,632stderr
7Sep 2, 2026 00:363,20011,593,4952,816,00002,117,632stderr
8Sep 2, 2026 00:363,20110,965,2662,817,00002,117,632stderr
9Sep 2, 2026 00:363,20510,979,1782,821,00002,117,632stderr