public class Factorize
extends java.lang.Object
Constructor and Description |
---|
Factorize() |
Modifier and Type | Method and Description |
---|---|
static int[] |
factor(int n,
int[] fromfactors)
Return the prime factors of n.
|
static int |
log2(int n)
Return the integer log, base 2, of n, or -1 if n is not an integral power of 2.
|
public static int[] factor(int n, int[] fromfactors)
public static int log2(int n)