public class HighlyCompositeNumbers
extends java.lang.Object
Constructor and Description |
---|
HighlyCompositeNumbers() |
Modifier and Type | Method and Description |
---|---|
static int[] |
getHCNs(int upperBound)
Returns an int[] with all highly composite numbers from 1 to upperBound.
|
static void |
printHCN()
Endless HCN print.
|
static void |
printHCN(int upperBound)
Prints all numbers between 0 and upperBound that have a higher amount of divisors than the numbers before.
|
static void |
printHCN(int lowerBound,
int upperBound)
Prints all numbers that have a higher amount of divisors than the numbers before.
|
public static void printHCN(int upperBound)
upperBound
- the last number to checkpublic static void printHCN(int lowerBound, int upperBound)
lowerBound
- the number from where to start looking for HCNsupperBound
- the last number to checkpublic static void printHCN()
public static int[] getHCNs(int upperBound)
upperBound
- the upper bound to check to.