I would be glad if you could help and tell me where the problem is in the code:
#include <iostream> #include <string> using namespace std; int main() { int n,i; cin >> n; while ( i<=n ) { if ( i%2 != 0 && i%2 != 0 && i%2 != 0 ) { cout<<'prime number are: '<< i << endl; } else { return 0; } } }