#include <iostream>
#include<conio.h>
#include <vector>
using namespace std;
int main () {
int n;
cin>>n;
int prime=1;;
vector<int>primes(n);
for(int i=2;i<n;i++) {
prime=1;
for(int j=2;j<i;j++)
{
if(i%j==0) {
prime=0;
break;
}
if(prime==1) {
cout<<i<<endl;
}
getch ();
return 0;
}
}
}
ıt is not working corectly where is my mistake how can ı write prime number put into vector