Run ID:126820
提交时间:2025-07-22 11:09:15
#include<bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int s = 1; for (int i = 2; i <= n - 1; i++) { if (n % i == 0) { s = 0; break; } } if (s == 0) { cout << "not prime" << endl; } else { cout << "prime" << endl; } return 0; }