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 2, 2026 03:35Victor MerckléVictor MerckléError
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 2, 2026 03:38011,574,5283,371,00002,117,632expected "50944732115510 ", got "50944732113241 "stderr
2Aug 2, 2026 03:383,80111,575,5853,345,00002,117,632stderr
3Aug 2, 2026 03:383,82211,687,9973,364,00002,117,632stderr
4Aug 2, 2026 03:383,90911,618,7333,440,00002,117,632stderr
5Aug 2, 2026 03:383,91211,589,5503,443,00002,117,632stderr
6Aug 2, 2026 03:383,93411,612,5993,462,00002,117,632stderr
7Aug 2, 2026 03:383,93912,283,8753,467,00002,117,632stderr
8Aug 2, 2026 03:383,94311,716,0343,470,00002,117,632stderr
9Aug 2, 2026 03:383,94412,306,8273,471,00002,117,632stderr