|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.ephman.utils.Prime
A class which will compute primes and test if a number is prime
Constructor Summary | |
Prime()
|
Method Summary | |
static boolean |
isPrime(int n)
Detemines if an int is prime |
static int |
primeAfter(int n)
Takes an int and returns the first prime >= n |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Prime()
Method Detail |
public static int primeAfter(int n)
n
- the starting placepublic static boolean isPrime(int n)
n
- the number to test
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |