Tiny bit more readable code in the is_prime method