#include #include using namespace std; const int N=5000001; int c[N]; int main() { vector primes; vector v; for(int i=2;i0;t/=10) x|=1<<(t%10); v.push_back(x); for(int j=i+i;j>n) { int a=0; for(int i=0;i>t; a|=1<a) { if (x==a and s