//求所有三位素数且是对称数
#include <iostream>
using namespace std;
int main()
{
for(int a=1;a<=9;++a)
for(int b=0;b<=9;++b)
ww:
for(int c=0;c<=9;++c){
for(int i=2;i<(a*100+b*10+c);++i){
if((a*100+b*10+c)%i==0)
goto ww;
return 1;}
if(a==c)
cout<<a*100+b*10+c<<endl;
 else
 continue;
  }
  system("PAUSE");    
  return 0;
}
运行后什么结果也没有呀,请大家看一是哪里出错了。



 
											





 
	    

 
	




