Checking only 2 and odd numbers for possible divisors