diff --git a/Algorithms.lua b/Algorithms.lua index 87c0aae..6bb6e82 100644 --- a/Algorithms.lua +++ b/Algorithms.lua @@ -1,7 +1,7 @@ --luaClasses/Algorithms.lua --Matthew Ellison -- Created: 2-4-19 ---Modified: 2-4-19 +--Modified: 2-7-19 --This is a file of algorithms that I have found it useful to keep around at all times @@ -137,6 +137,7 @@ function getFactors(goalNumber) return factors; end +--This is a function the returns all divisors of the number passed to it function getDivisors(goalNumber) local divisors = {}; --Start by checking that the number is positive