def is_prime(x): if x <= 2: return True else: for i in range(2, int(pow(x, 0.5)) + 1): ...