public final class Prime extends Object
note: we consider zero to not be a prime :(
| Constructor and Description |
|---|
Prime() |
| Modifier and Type | Method and Description |
|---|---|
static void |
internal_test()
testbench.
|
static boolean |
isPrime(int n)
prime test
|
static int |
nextPrime(int n)
get the closest prime larger than "n", including "n" itself
|
static int |
prevPrime(int n)
get the closest prime smaller than "n", including "n" itself
|
public static final boolean isPrime(int n)
public static final int nextPrime(int n)
public static final int prevPrime(int n)
public static void internal_test()
This file is a part of the JDD package, a native Java Binary Decision Diagram Library.