Don't rely on counting from >2 for is_prime