Easy and best code in C for better understanding 
Code

# Code
```c []
int primePalindrome(int n) {
    int i, new, rev, j;

    for (i = n; ; i++) {
        rev = 0;

        // Skip even-length palindromes (except 11)
        int length = 0, temp = i;
        while (temp > 0) {
            length++;
            temp /= 10;
        }
        if (length % 2 == 0 && i != 11) continue;

        // Check if 'i' is a palindrome
        new = i;
        while (new > 0) {
            rev = (rev * 10) + (new % 10);
            new = new / 10;
        }
        if (rev != i) continue;

        // Check if 'i' is prime
        int isPrime = 1;
        if (i < 2) continue;
        if (i % 2 == 0 && i > 2) continue; // Skip even numbers > 2

        for (j = 3; j <= sqrt(i); j += 2) {
            if (i % j == 0) {
                isPrime = 0;
                break;
            }
        }
        if (!isPrime) continue;

        return i; // Return first prime palindrome found
    }

    return -1;
}










```
['Math', 'C', 'Number Theory']