1 solutions

  • 0
    @ 2024-10-7 21:30:57

    #include <stdio.h> int main() { int n,i; int ret=1; scanf("%d",&n); if(n1||n0){ ret=0; } for(i=2;i<n-1;i++){ if(n%i0){ ret=0; break; } } if(ret1){ printf("YE5"); } else if(ret==0){ printf("N0"); } return 0; }

    • 1

    Information

    ID
    6766
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    8
    Tags
    # Submissions
    706
    Accepted
    85
    Uploaded By