in this question i found a solution which goes like this :
cin >> n;
if(n <= 4) {
cout << 0 << " " << n << endl;
}
else {
cout << 1 << " " << n-1 << endl;
}
so basically what he said in explanation is that the only even prime palandromic number after n value passes 4 is 11 so we do n-1 if n>4 but what if we take the 4 digits prime palandromic numbers such as 4289, 4561, 5189, 5669, 5861 that solution is not taking these numbers in account and it is still correct can someone explain how