Class SieveOfAtkin

    • Method Detail

      • isPrime

        public boolean isPrime​(int n)
      • lastPrime

        public int lastPrime()
        Returns the last prime in this sieve
      • randomPrime

        public int randomPrime​(org.apache.commons.math3.random.RandomGenerator rnd)
      • getLimit

        public int getLimit()
      • getLimitAsBigInteger

        public BigInteger getLimitAsBigInteger()
      • createSieve

        public static SieveOfAtkin createSieve​(int limit)