fork download
  1. #include <stdio.h>
  2. #define N 100
  3. int func(int n)
  4. {
  5. int r = 0, nn = 2;
  6. while (n > 1)
  7. {
  8. if (n % nn == 0)
  9. {
  10. n /= nn;
  11. ++r;
  12. }
  13. else ++nn;
  14. }
  15. return r;
  16. }
  17. int main()
  18. {
  19. int i;
  20. for (i = 0; i < N; ++i)
  21. if (func(i) == 2)printf("%d ", i);
  22. return 0;
  23. }
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
4 6 9 10 14 15 21 22 25 26 33 34 35 38 39 46 49 51 55 57 58 62 65 69 74 77 82 85 86 87 91 93 94 95