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 listDec 23, 2023 06:53Kenneth MaplesKenneth MaplesScore: 58,491Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 23, 2023 06:5350,144102,972,99744,126,56102,252,800
2Dec 23, 2023 06:5350,189118,406,29144,166,44102,256,896
3Dec 23, 2023 06:5350,246105,357,54344,216,77202,256,896
4Dec 23, 2023 06:5358,34773,351,12450,339,0001,006,0002,289,664
5Dec 23, 2023 06:5358,36877,948,94650,357,0001,007,0002,289,664
6Dec 23, 2023 06:5358,44573,543,09251,432,00002,379,776
7Dec 23, 2023 06:5358,49180,293,00650,463,0001,009,0002,289,664
8Dec 23, 2023 06:5358,50177,994,02950,472,0001,009,0002,289,664
9Dec 23, 2023 06:5358,50780,824,66150,477,0001,009,0002,289,664
10Dec 23, 2023 06:5358,58879,998,30750,547,0001,010,0002,289,664
11Dec 23, 2023 06:5358,63476,795,74750,587,0001,011,0002,289,664
12Dec 23, 2023 06:5358,66676,653,49950,614,0001,012,0002,273,280