diff --git a/Algorithms.lua b/Algorithms.lua index 833ee8a..b2f166e 100644 --- a/Algorithms.lua +++ b/Algorithms.lua @@ -164,7 +164,7 @@ function getDivisors(goalNumber) divisors[#divisors + 1] =(goalNumber / possibleDivisor); end --Take care of a few occations where a number was added twice - if(divisors(#divisors) == (possibleDivisor + 1)) then + if(divisors[#divisors] == (possibleDivisor + 1)) then possibleDivisor = possibleDivisor + 1; end end