- java.lang.Object
-
- org.logicng.knowledgecompilation.bdds.jbuddy.BDDPrime
-
public final class BDDPrime extends Object
Prime number calculations- Since:
- 1.4.0
- Version:
- 2.0.0
-
-
Constructor Summary
Constructors Constructor Description BDDPrime()Private constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intprimeGTE(int num)Returns the next prime greater than the given number.intprimeLTE(int num)Returns the next prime less than the given number.
-
-
-
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
-
-