Math.floorDiv is a better way to find number of times divisible than my naive implementation