Thông tin
include<bits/stdc++.h>
using namespace std;
bool nt(int x) { for(int i = 2; i <= sqrt(x); i++) { if(x % i== 0) return false; } return x > 1; } int main() { iosbase::syncwith_stdio(false); cin.tie(NULL); int a, b; cin >> a >> b; for(int i = a; i <= b; i++) { if(nt(i)) cout << i << '\n'; } }