Run ID:112088

提交时间:2025-03-08 13:16:16

#include<bits/stdc++.h> using namespace std; int main() { int n; n = 100; for (int j = 100; j <=200 ; j++) { int a = 0; for (int i = 2; i <= n; i++) { for (int i = 2; i < n ; i++) { if (n % i == 0) { a = 1; break; } } if (a == 1) { cout << "NO" << endl; } else { cout << "Yes" << endl; } n = j; } } return 0; }