Module logicng

Class BDDPrime


  • public final class BDDPrime
    extends Object
    Prime number calculations
    Since:
    1.4.0
    Version:
    2.0.0
    • Constructor Detail

      • BDDPrime

        public BDDPrime()
        Private constructor.
    • Method Detail

      • primeGTE

        public int primeGTE​(int num)
        Returns the next prime greater than the given number.
        Parameters:
        num - the number
        Returns:
        the next prime greater than the given number
      • primeLTE

        public int primeLTE​(int num)
        Returns the next prime less than the given number.
        Parameters:
        num - the number
        Returns:
        the next prime less than the given number