[C++]
c++\n#define ll int\nclass Solution {\npublic:\n    bool isPrime(ll n){\n    if(n==1)return false;\n    for(ll i=2;i*i<=n;i++)\n        if(n%i==0)return false;\
```c++\n#define ll int\nclass Solution {\npublic:\n    bool isPrime(ll n){\n    if(n==1)return false;\n    for(ll i=2;i*i<=n;i++)\n        if(n%i==0)return false;\n    return true;\n    }\n    int primePalindrome(int n) {\n        if(n>=8 and n<=11){\n            return 11;\n        }\n    for(ll i=1;i<=1000000;i++){\n        string s=to_string(i);\n        string r(s.rbegin(),s.rend());\n        string y=s+r.substr(1);\n        ll y1=stoi(y);\n        if(y1>=n and isPrime(y1))\n            return y1;\n        }\n    return -1;\n    }\n};\n```
['C']