#include<iostream> using namespace std; int main() { int a, b, i, ok, d; cin>>a>>b; for(i=a;i<=b;i++) { ok=1; if(i==0 || i==1) ok=0; else for(d=2;d<=i/2;d++) if(i%d==0) ok=0; if(ok) cout<<i<<" "; } system("pause"); return 0; }