public class Primes
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static int[] |
primes
Prime numbers in ascending order.
|
| Modifier | Constructor and Description |
|---|---|
private |
Primes()
Prevents instantiation.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
nextPrime(int n)
Returns from a static prime table the least prime that is greater
than or equal to a specified value.
|
public static int nextPrime(int n)