One step understanding

please explain me the step of mark all the multiples of i as not prime with the help of some numbers

Hello @TheSourabh think of 3 as it the odd number then we will keep this mark as prime but we will start from the square of this number like
the square of 3 is 9 then we will mark it not prime and and then increment in loop by 3 and then 12 as not prime and then 15 as not prime and then 18 as not prime and then 21 and then 24 and then 27 and then 30 and then 33 it will go on like this:
in this way it will work.
if you have any doubt you can ask here:
Happy Learning!!