Cannot figure out why it is not running

Hey @abhinavsehgal802_270a44594b6dc4ad,
In this problem you need to find the number of prime numbers between a and b.
In order to do this, you need to use the Sieve of Eratosthenes.
You had error in the logic while marking the multiple of odd indexes as non prime, rest of the code looks good. Here is your updated code:

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.