public class PrimeFactors extends Object
| Constructor and Description |
|---|
PrimeFactors()
|
| Modifier and Type | Method and Description |
|---|---|
static long[] |
get(long i)
Return the prime factors a number.
|
static long[] |
getPrimeNumbers(int arrayLength)
Return the first several prime numbers.
|
public static long[] getPrimeNumbers(int arrayLength)
arrayLength - the number of prime numbers to return.
public static long[] get(long i)
throws MathException.NegativeException
i - a non-negative long value
MathException.NegativeException - if the argument is negative