Package elki.math

Class Primes


  • public final class Primes
    extends java.lang.Object
    Class for prime number handling. TODO: actually offer functions for testing primes and generating primes - as of now, we just offer a list of the first 1000 primes for use by other classes.
    Since:
    0.5.5
    Author:
    Erich Schubert
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int[] FIRST_PRIMES
      The first 1000 prime numbers
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Primes()
      Pseudo constructor.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • FIRST_PRIMES

        public static final int[] FIRST_PRIMES
        The first 1000 prime numbers
    • Constructor Detail

      • Primes

        private Primes()
        Pseudo constructor.