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:04apuxbtapuxbtScore: 31,966Success
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:0431,16690,817,24327,425,67802,232,320
2Dec 1, 2022 06:0431,32186,587,31227,562,28702,224,128
3Dec 1, 2022 06:0431,32386,208,32027,564,38002,236,416
4Dec 1, 2022 06:0431,90952,340,78227,078,0001,002,0002,265,088
5Dec 1, 2022 06:0431,92753,457,94127,093,0001,003,0002,265,088
6Dec 1, 2022 06:0431,96151,877,90626,117,0002,009,0002,387,968
7Dec 1, 2022 06:0431,96653,833,26827,126,0001,004,0002,387,968
8Dec 1, 2022 06:0432,05057,030,70526,190,0002,014,0002,265,088
9Dec 1, 2022 06:0432,06455,911,52627,209,0001,007,0002,387,968
10Dec 1, 2022 06:0432,08458,232,47126,218,0002,016,0002,387,968
11Dec 1, 2022 06:0432,11855,884,69526,246,0002,018,0002,383,872
12Dec 1, 2022 06:0432,17453,619,90727,302,0001,011,0002,387,968