Eratosthenes Sieve

sir in the optimization, you directly jumped from 5 to 25
and ignore 10,15,20 which are multiples of 5 also??
and why in the for loop the increment was j=j+i?

Hello @mzk1994 in the doubt you have raised previous all these number which you have mentioned when loop will rum for 3.

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.

thanks for the awesome information.

thanks my issue has been fixed.