#include using namespace std; bool isprime[1000001]; vector prime; bool check[1000001]; int main(void) { long long int a,b; int count = 0; //cin.tie(0); //ios::sync_with_stdio(false); cin >> a >> b; memset(isprime,true,sizeof(isprime)); memset(check,false,sizeof(check)); for(long long int i=2;i<=(long long int)sqrt(b);i++) { if(isprime[i]) { prime.push_back(i); for(long long int j=2*i;j<=(long long int)sqrt(b);j+=i) { isprime[j]=false; } } } for(int i=0;i