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 31, 2026 15:04Victor MerckléVictor MerckléScore: 8,802Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 31, 2026 15:078,66816,085,5966,373,0001,255,0002,146,304stderr
2Aug 31, 2026 15:078,67017,146,4106,422,0001,208,0002,146,304stderr
3Aug 31, 2026 15:078,77115,981,1906,507,0001,212,0002,146,304stderr
4Aug 31, 2026 15:078,78715,953,4646,483,0001,250,0002,146,304stderr
5Aug 31, 2026 15:078,80216,710,3876,454,0001,292,0002,146,304stderr
6Aug 31, 2026 15:078,81415,980,4396,444,0001,313,0002,146,304stderr
7Aug 31, 2026 15:078,81916,047,8916,376,0001,385,0002,146,304stderr
8Aug 31, 2026 15:078,82816,027,6736,490,0001,279,0002,146,304stderr
9Aug 31, 2026 15:078,84716,011,7526,421,0001,365,0002,146,304stderr