Class NthPrimeUpperBoundsTest
- java.lang.Object
-
- de.tilman_neumann.jml.primes.bounds.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 Summary
Constructors Constructor Description NthPrimeUpperBoundsTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(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).
-
-
-
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 interfaceSieveCallback
- Parameters:
p
- the exact n.th prime
-
main
public static void main(String[] args)
-
-