Class PowerOfSmallPrimesFinder

  • All Implemented Interfaces:
    PowerFinder

    public class PowerOfSmallPrimesFinder
    extends SomePowerFinder
    Algorithm to find the first powers of all p
    Author:
    Tilman Neumann
    • Constructor Detail

      • PowerOfSmallPrimesFinder

        public PowerOfSmallPrimesFinder()
    • Method Detail

      • getName

        public String getName()
        Returns:
        algorithm name
      • findPowers

        public TreeSet<PowerEntry> findPowers​(BigInteger kN,
                                              int[] primes,
                                              int[] tArray,
                                              int primeBaseSize,
                                              SieveParams sieveParams)
        Find the first powers > pMin.
        Parameters:
        kN -
        primes -
        tArray -
        primeBaseSize -
        sieveParams -
        Returns:
        powers sorted bottom-up by p