HOC24
Lớp học
Môn học
Chủ đề / Chương
Bài học
#include <bits/stdc++.h>using namespace std;bool ktsnt(long long n){ long long i;if(n<2) return false; else { for(i=2;i<=sqrt(n);i++) if(n%i==0) return false; return true; }}long long cnt;int main(){ios_base::sync_with_stdio(0);cin.tie(0); cout.tie(0);cin>>cnt;if(ktsnt(cnt)==true) cout<<"YES";else cout<<"NO";return 0;}
có gh của n ko bạn!
Em ko biết viết code bằng Pascal