problem 5, smallest number divisible by each number in a range