Fixed typo

This commit is contained in:
2020-06-16 11:30:39 -04:00
parent 7921241b1b
commit 1443e5bc57

View File

@@ -417,7 +417,7 @@ public class Algorithms{
//If you find one add it and the number it creates to the list //If you find one add it and the number it creates to the list
if((goalNumber % possibleDivisor) == 0){ if((goalNumber % possibleDivisor) == 0){
divisors.add(possibleDivisor); divisors.add(possibleDivisor);
//Accound for the possibility of sqrt(goalNumber) being a divisor //Account for the possibility of sqrt(goalNumber) being a divisor
if(possibleDivisor != topPossibleDivisor.intValue()){ if(possibleDivisor != topPossibleDivisor.intValue()){
divisors.add(goalNumber / possibleDivisor); divisors.add(goalNumber / possibleDivisor);
} }
@@ -451,7 +451,7 @@ public class Algorithms{
//If you find one add it and the number it creates to the list //If you find one add it and the number it creates to the list
if((goalNumber % possibleDivisor) == 0){ if((goalNumber % possibleDivisor) == 0){
divisors.add(possibleDivisor); divisors.add(possibleDivisor);
//Accound for the possibility of sqrt(goalNumber) being a divisor //Account for the possibility of sqrt(goalNumber) being a divisor
if(possibleDivisor != topPossibleDivisor.longValue()){ if(possibleDivisor != topPossibleDivisor.longValue()){
divisors.add(goalNumber / possibleDivisor); divisors.add(goalNumber / possibleDivisor);
} }
@@ -485,7 +485,7 @@ public class Algorithms{
//If you find one add it and the number it creates to the list //If you find one add it and the number it creates to the list
if(goalNumber.mod(possibleDivisor).equals(BigInteger.valueOf(0))){ if(goalNumber.mod(possibleDivisor).equals(BigInteger.valueOf(0))){
divisors.add(possibleDivisor); divisors.add(possibleDivisor);
//Accound for the possibility of sqrt(goalNumber) being a divisor //Account for the possibility of sqrt(goalNumber) being a divisor
if(!possibleDivisor.equals(topPossibleDivisor)){ if(!possibleDivisor.equals(topPossibleDivisor)){
divisors.add(goalNumber.divide(possibleDivisor)); divisors.add(goalNumber.divide(possibleDivisor));
} }