fork download
  1. #include<stdio.h>
  2. #include<iostream.h>
  3.  
  4.  
  5. int main()
  6. {
  7. for(int j=2;j<=100;++j)
  8. {
  9. int i=2;
  10. for(;i<=j-1;i++)
  11. {
  12. if(j%i == 0)
  13. break;
  14. }
  15.  
  16. if(i==j && i != 2)
  17. cout<<j<<endl;
  18. }
  19. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:2:21: fatal error: iostream.h: No such file or directory
 #include<iostream.h>
                     ^
compilation terminated.
stdout
Standard output is empty