CPP program to find next palindromic prime for a given number .
#include <iostream> NEW_LINE #include <string> NEW_LINE using namespace std ; bool isPrime ( int num ) { if ( num < 2 num % 2 == 0 ) return num == 2 ; for ( int i = 3 ; i * i <= num ; i += 2 ) if ( num % i == 0 ) return false ; return true ; } int primePalindrome ( int N ) {