Query section problem

in query section how an ii identify that the numbers between 1 to 10 and 11 to 20 there 4 prime numbers

hi @TheSourabh after you have made the sieve you can run a loop from 1 to 10 (for example, this range can change according to the query) and if you find any prime number you can increase the count.

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.