You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

358 B

C

//判断素数// #include<stdio.h> #include<math.h> int prime(int n) { int i; if(n==0) return 0; if(n==1) return 0; for(i=2;i<=sqrt(n);i++) if(n%i==0) return 0; else return 1;

} int main() { int n,m; m = prime(n); if(m==1) printf("Yes"); else printf("No"); return 0; }