fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int a,b;
  6. scanf("%d",&a);
  7. for(b=2;b<=a-1;b++) if(a%b==0) break;
  8. {
  9. if(a>b) printf("yes");
  10. else printf("na");
  11. }
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 5316KB
stdin
6
stdout
yes