This code is not executing i think this is running infine loop

Hi @balram
You didn’t take any input for n3 and n4 while repeatedly took input for n1 and n2. Also you have only run your loop for Sieve till 10 which means you will only have prime numbers till 10 and no more.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.