#include <iostream> using namespace std; int main() { for(int i=100;i<=999;i++){ int a=i/100; int b=i%10; if(a==b&&i%2!=0&&i%3!=0&&i%5!=0&&i%7!=0){ cout<<i<<endl; } } return 0; }
标签:std,1155,namespace,int,using,main From: https://www.cnblogs.com/As10016/p/17089805.html