Go over the implementation of finding all the divisors of a number.
check = nil(1..input).each do |x| check = input % x if check == 0 array << x endend
...