My code is not working can someone plz suggest some changes in it.My code is

#include

#include

#include<math.h>

using namespace std;

int isprime(int);

int palin(int);

int main()

{

long int N;

cin>>N;

while(N)

{

if(isprime(N))

{

if(palin(N))

{

cout<<N;

break;

}

```
}
N++;
```

}

}

int isprime( int n)

{ int i;

for(i=2;i<=n/2;i++)

{

if(n%i==0)

return 0;

}

if(i>n/2)

return 1;

}

int palin(int N)

{

int i=0,cnt,j,n;

int M,K=0;

```
M=N;
while(N)
{
N=N/10;
i++;
}
N=M;
while(N)
{
j=N%10;
K=K+(pow(10,i)*j);
i--;
N=N/10;
}
if(M==K)
return 1;
else
return 0;
```

}