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 07:34apuxbtapuxbtScore: 31,065Success
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 07:3430,83852,616,69325,127,0002,010,0002,265,088
2Dec 1, 2022 07:3430,87057,012,09226,160,0001,006,0002,265,088
3Dec 1, 2022 07:3430,89851,215,62325,176,0002,014,0002,387,968
4Dec 1, 2022 07:3431,00248,917,11726,272,0001,010,0002,387,968
5Dec 1, 2022 07:3431,01461,712,72726,282,0001,010,0002,387,968
6Dec 1, 2022 07:3431,04150,430,25427,316,00002,265,088
7Dec 1, 2022 07:3431,06554,169,85026,325,0001,012,0002,523,136
8Dec 1, 2022 07:3431,08855,623,05527,357,00002,265,088
9Dec 1, 2022 07:3431,22548,637,21526,461,0001,017,0002,383,872
10Dec 1, 2022 07:3431,226108,177,63327,478,66502,224,128
11Dec 1, 2022 07:3431,34395,783,25927,581,63102,236,416
12Dec 1, 2022 07:3431,36397,140,08527,599,57402,236,416