全部评论 1

  • #include <bits/stdc++.h>
    using namespace std;
    int n;
    bool flag=true;
    int main(){

    cin>>n;
    if(n==1) cout<<"No";
    else{
        bool flag=true;
        for(int i=2;i<n;i++){
            if(n%i==0){
                flag=false;
                break;
            }
        }
        if(flag==false){
            cout<<"No";
        }else{
            cout<<"Yes";
        }
    }
    
    return 0;
    

    }

    2025-01-19 来自 浙江

    0
首页