Python 3 solution
Code\npython3 []\nclass Solution:\n    @staticmethod\n    def is_palindrome(x):\n        return (s := str(x)) == s[::-1]\n    \n    @staticmethod\n    def is_pr
# Code\n```python []\nclass Solution:\n    @staticmethod\n    def is_palindrome(x):\n        return (s := str(x)) == s[::-1]\n    \n    @staticmethod\n    def is_prime(x):\n        if x < 2:\n            return False\n        for i in range(2, int(x**0.5 + 1)):\n            if not x % i:\n                return False\n        return True\n\n    def primePalindrome(self, n: int) -> int:\n        while True:\n            if Solution.is_palindrome(n) and Solution.is_prime(n):\n                return n\n            n += 1\n            if 10**7 < n < 10**8: # There are no prime palindromes in this range\n                n = 10**8\n```
['Python3']