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 05:40apuxbtapuxbtScore: 31,530Success
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 05:4031,35353,418,90627,591,00002,383,872
2Dec 1, 2022 05:4031,41457,505,50726,621,0001,023,0002,392,064
3Dec 1, 2022 05:4031,42052,385,86826,626,0001,024,0002,383,872
4Dec 1, 2022 05:4031,42554,164,39127,654,00002,265,088
5Dec 1, 2022 05:4031,48353,846,44426,679,0001,026,0002,265,088
6Dec 1, 2022 05:4031,49759,374,01226,691,0001,026,0002,392,064
7Dec 1, 2022 05:4031,53055,983,89626,719,0001,027,0002,265,088
8Dec 1, 2022 05:4031,54561,280,92627,760,00002,502,656
9Dec 1, 2022 05:4031,70954,431,72525,911,0001,993,0002,387,968
10Dec 1, 2022 05:4032,41198,774,97328,521,28902,236,416
11Dec 1, 2022 05:4032,504102,145,29228,603,89302,244,608
12Dec 1, 2022 05:4032,50989,847,50428,608,10502,240,512