fork download
  1. #include <stdio.h>
  2. main ()
  3. {
  4. int a, b, t;
  5.  
  6. for(a = 3;a < 101;a++)
  7. {
  8. for(b = 2;b <= a;b++)
  9. {
  10. if(a % b == 0) t = 1;
  11. }
  12. if(t = 0) printf("%d是素数", a);
  13. }
  14. }
Success #stdin #stdout 0s 5320KB
stdin
12354
stdout
Standard output is empty