returns false if numbers are not prime