21:0021:00, 17 May 2022diffhist−23
Primality test
The function claimed to have the 6k+-1 optimization that the above ones have, but it did not. I ported this optimization and tested. It is indeed more than 2x faster. I've included this version that is consistent with the other examples.
21:0021:00, 17 May 2022diffhist−23
Primality test
The function claimed to have the 6k+-1 optimization that the above ones have, but it did not. I ported this optimization and tested. It is indeed more than 2x faster. I've included this version that is consistent with the other examples.