easy  to understand java solution
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```java []\n\nclass Solution {\npublic int primePalindrome(int n) \n    {\n        if(n==1)\n            return 2;\n        while(true)\n        {\n            if(n%2==0 && n!=2)\n              {  n++;\n                continue;\n                }\n            if (n > 11 && isEvenLength(n)) {\n                n = (int) Math.pow(10, Integer.toString(n).length());\n            }\n            if(isPrime(n) && isPalindrome(n))\n                    return n;\n            \n               n++;\n        }\n        \n    }\n\n   public boolean isPalindrome(int x) \n   {\n        int n = x;\n        long m=0;\n        while(x>0)\n        {\n             m=m*10+x%10;\n             x=x/10;\n        }\n        return n==m;\n    }\n    public boolean isPrime(int x)\n    {\n        for(int i=2;i*i<=x;i++)\n        {\n            if(x%i == 0)\n               return false;\n        }\n        return true;\n    }\n     private boolean isEvenLength(int n) {\n        int length = Integer.toString(n).length();\n        return length % 2 == 0;\n    }\n};\n```
['Java']