Added more unit tests

This commit is contained in:
2022-12-06 00:51:12 -05:00
parent 703b79c002
commit 5bdb9f8110
11 changed files with 620 additions and 2 deletions

View File

@@ -112,8 +112,7 @@ public class Problem30 extends Problem{
return String.format("The sum of all the numbers that can be written as the sum of the fifth powers of their digits is %d", sum);
}
//This returns the top number to be checked
public long getTopNum(){
solvedCheck("largest number checked");
public static long getTopNum(){
return TOP_NUM;
}
//This returns a copy of the vector holding all the numbers that are the sum of the fifth power of their digits