Run ID:74363
提交时间:2024-05-25 10:02:38
#include<iostream> #include<iomanip> using namespace std; int main(){ int a,c = 0; cin>>a; for(int i=1;i<=a;i++){ if(a%i==0){ c++; } } if(c == 2){ cout<<"prime"; } else{ cout <<"not prime"; } }