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 listAug 29, 2026 13:05Victor MerckléVictor MerckléScore: 3,276Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 29, 2026 13:083,17111,041,1932,791,00002,117,632stderr
2Aug 29, 2026 13:083,18110,970,1182,800,00002,117,632stderr
3Aug 29, 2026 13:083,26711,027,9422,875,00002,117,632stderr
4Aug 29, 2026 13:083,27510,969,5482,882,00002,117,632stderr
5Aug 29, 2026 13:083,27611,022,2332,883,00002,117,632stderr
6Aug 29, 2026 13:083,27912,892,3322,886,00002,117,632stderr
7Aug 29, 2026 13:083,28011,627,8582,887,00002,117,632stderr
8Aug 29, 2026 13:083,28211,734,9192,889,00002,117,632stderr
9Aug 29, 2026 13:083,28511,045,2952,891,00002,117,632stderr