#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&&i%11!=0&&i%13!=0&&i%13!=0&&i%23!=0&&i%17!=0){ cout<<i<<endl; } } return 0; }