Class NthPrimeUpperBoundsTest

  • All Implemented Interfaces:
    SieveCallback

    public class NthPrimeUpperBoundsTest
    extends Object
    implements SieveCallback
    Test of upper bound estimates for the n.th prime.
    Author:
    Tilman Neumann
    • Constructor Detail

      • NthPrimeUpperBoundsTest

        public NthPrimeUpperBoundsTest()
    • Method Detail

      • processPrime

        public void processPrime​(long p)
        Fallback method: Receives new primes from the sieve and checks the upper bound estimates for the n.th prime p(n). Changing the mod we can regulate the resolution of the data to look at. Searching in the results for something like "rs01=-" lets us investigate in which ranges the particular algorithms work.
        Specified by:
        processPrime in interface SieveCallback
        Parameters:
        p - the exact n.th prime
      • main

        public static void main​(String[] args)