Class PrimeCountsBetweenSquares

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

public class PrimeCountsBetweenSquares
extends java.lang.Object
implements SieveCallback
Find #primes between consecutive squares. Gives OEIS sequences A014085.
  • Constructor Summary

    Constructors
    Constructor Description
    PrimeCountsBetweenSquares​(long limit)  
  • Method Summary

    Modifier and Type Method Description
    static void main​(java.lang.String[] args)  
    void processPrime​(long prime)  
    void run()  

    Methods inherited from class java.lang.Object

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

    • PrimeCountsBetweenSquares

      public PrimeCountsBetweenSquares​(long limit)
  • Method Details

    • run

      public void run()
    • processPrime

      public void processPrime​(long prime)
      Specified by:
      processPrime in interface SieveCallback
    • main

      public static void main​(java.lang.String[] args)