fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int m,i,k;
  5. scanf("%d",&m);
  6. k=m-1;
  7. for(i=2;i<m;i++)
  8. {
  9. if(m/i==0)break;
  10. if(i>k)
  11. printf("%d is\n",m);
  12. else
  13. printf("%d is not\n",m);
  14. }
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 5304KB
stdin
13
stdout
13 is not
13 is not
13 is not
13 is not
13 is not
13 is not
13 is not
13 is not
13 is not
13 is not
13 is not