Example usage for Java org.apache.commons.math3.primes Primes fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | isPrime(int n) Primality test: tells if the argument is a (provable) prime or not. |
int | nextPrime(int n) Return the smallest prime greater than or equal to n. |