Untitled
unknown
plain_text
2 years ago
293 B
1
Indexable
Never
#include <iostream> using namespace std; int main() { int n, a = 1; cin >> n; for (int i = 2; i <= 10; i++) { if (n > 1 && n % i == 0 && n != i) { a = 0; } } if (a > 0) cout << "YES"; else cout << "NO"; }