以下是自己写的回文数判断的函数素数判断应该是对的
#include <bits/stdc++.h>
using namespace std;
bool c(int i){
string b,e;
int d=1;
for(int j=1;j<=i;j*=10){
b+=i%(j*10)/j+'0';
}
for(int j=b.length()-1;j>=0;j--){
e+=b[j]+'0';
}
for(int j=1;j<=d;j++){
if(b[j]!=e[j]){
return 0;
}
}
return 1;
}