#include #include #include int main() { int res,vl; res=vl=0; while(vl<99999999) { vl++; if(prime(vl)==0&&pandg(vl)==0) res=vl; } printf("\n\t%i\n\n",res); system("pause"); return 0; } int pandg(int vl) { int a,b,c=0,f=1; char st[10]; while((vl%10!=0||vl/10!=0)&&c<9) { st[c++]=vl%10+48; vl/=10; } st[c]='\0'; for(a=1;a<=c&&f==1;a++) for(b=f=0;b