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:24apuxbtapuxbtError
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:2400000Error: expected "51370161274202 ", got "51370161274135 "
2Dec 1, 2022 06:2431,118105,084,36427,383,45302,232,320
3Dec 1, 2022 06:2431,21896,487,49327,471,64302,232,320
4Dec 1, 2022 06:2431,262100,847,21027,510,92302,236,416
5Dec 1, 2022 06:2431,278105,484,72827,524,94802,228,224
6Dec 1, 2022 06:2431,29581,015,24927,539,76402,236,416
7Dec 1, 2022 06:2431,30495,993,02927,547,87602,228,224
8Dec 1, 2022 06:2431,89055,793,43927,061,0001,002,0002,265,088
9Dec 1, 2022 06:2431,90254,742,23026,069,0002,005,0002,392,064
10Dec 1, 2022 06:2431,93653,164,57126,097,0002,007,0002,383,872
11Dec 1, 2022 06:2431,94957,561,55326,107,0002,008,0002,387,968
12Dec 1, 2022 06:2431,97055,136,51626,125,0002,009,0002,265,088
13Dec 1, 2022 06:2431,97853,971,89027,136,0001,005,0002,265,088
14Dec 1, 2022 06:2432,00153,134,70226,150,0002,011,0002,387,968
15Dec 1, 2022 06:2432,01654,205,09226,162,0002,012,0002,502,656
16Dec 1, 2022 06:2432,05056,851,81826,190,0002,014,0002,371,584