33 as not prime

how 33 will be marked as not prime if we are doing i*i.

Hello @kirat.singh8417 when you i is 3 then your j will ne i*i i.e 9 and after that you code will mark not prime the numbers as 3 incremented to the j.
it will be like : 9+3=12
12+3=15
15+3=18
18+3=21
21+3=24
24+3=27
27+3=30
30+3=33
and here 33 will be marked as not prime.
if you still have any doubt you can ask here:
Happy Learning!!

ok thank you , i hadnt dry run it that time properly.

@kirat.singh8417 its okay you can now mark this as resolved.
Happy Learning!!

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.