提交时间:2024-05-25 15:25:33
运行 ID: 148979
#include<iostream> #include<math.h> using namespace std; int main(){ unsigned long long int n,sum; sum=0; cin>>n; for(unsigned long long int i=1;i<=n;i++){ if(n%i==0){ sum++; } } if(sum==2){ cout<<"Yes"; }else{ cout<<"No"; } return 0; }