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 1, 2022 06:12apuxbtapuxbtScore: 33,631Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 1, 2022 06:1232,90396,253,35528,954,34502,232,320
2Dec 1, 2022 06:1232,97480,989,20029,017,40402,236,416
3Dec 1, 2022 06:1233,08091,082,66729,110,41402,224,128
4Dec 1, 2022 06:1233,52653,852,56529,503,00002,265,088
5Dec 1, 2022 06:1233,53855,486,73229,513,00002,383,872
6Dec 1, 2022 06:1233,59155,674,56628,541,0001,019,0002,392,064
7Dec 1, 2022 06:1233,63157,707,84928,575,0001,020,0002,265,088
8Dec 1, 2022 06:1233,64351,866,46428,586,0001,020,0002,260,992
9Dec 1, 2022 06:1233,64449,794,64929,607,00002,383,872
10Dec 1, 2022 06:1233,76657,932,24529,714,00002,392,064
11Dec 1, 2022 06:1233,76857,543,50328,692,0001,024,0002,383,872
12Dec 1, 2022 06:1233,79163,982,56828,711,0001,025,0002,265,088