Improve p007 performance by checking only factors under the square root of the potential prime