0

Hey c++ maniacs out there ^_^ I need your help to edit this code. In such a way that this program can generate all prime numbers from 10000-50000. BUT it will still ask the user what limit he wants but the limit should be between the said default limit ( 10k- 50k). Also, the prime number that will be generated is the prime number that every digit is also a prime number and if you combine one by one it's digit it is still a prime number. Example is 37373 , 3 is prime 37 is prime 373 is prime 37373 is prime and 37373 is also prime. Sorry for my english so if you did not understand the question well please reply and confirm. THANKS IN ADVANCE! I really need your help here guys!

```
int main ()
{
for (int i=2; i<100; i++)
{
bool prime=true;
for (int j=2; j*j<=i; j++)
{
if (i % j == 0)
{
prime=false;
break;
}
}
if(prime) cout << i << " ";
}
return 0;
}
```