Limit factor testing in prime number gen to the largest possible factor.