Class NthPrimeUpperBoundsTest

java.lang.Object
de.tilman_neumann.jml.primes.bounds.NthPrimeUpperBoundsTest
All Implemented Interfaces:
SieveCallback

public class NthPrimeUpperBoundsTest
extends java.lang.Object
implements SieveCallback
Test of upper bound estimates for the n.th prime.
  • Constructor Summary

    Constructors
    Constructor Description
    NthPrimeUpperBoundsTest()  
  • Method Summary

    Modifier and Type Method Description
    static void main​(java.lang.String[] args)  
    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).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NthPrimeUpperBoundsTest

      public NthPrimeUpperBoundsTest()
  • Method Details

    • 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​(java.lang.String[] args)