def golf(number): x = number while True: x += 1 if str(x) != str(x)[::-1]: continue for i in range(2, x): if x % i == 0 : break else: return x
5
2