Untitled
unknown
plain_text
a year ago
318 B
5
Indexable
#include <bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
if(n <= 1){
cout<<"NO";
return 0;
}
for(int i = 2; i < n; i++){
if(n % i == 0){
cout<<"NO";
return 0;
}
}
cout<<"YES";
return 0;
}
Editor is loading...
Leave a Comment