Improved q5

changed q5 to check the entire input range from high to low rather than
just prime factors. This yields larger divisors.