why in the loop where we are forming the prime sieve ,we are taking a jump of 2i aftr starting the loop from i^2.WHy are we not taking a jump of i units?
Loop of sieve logic
from time 3:36 where the code of prime sieve is written in the for loop that starts from i^2
@Senjuti256 let take i as a odd no lets say i=7 then ixi=49 (so i sq will also be odd)
the if you add i to i square both odd will give even which can be ignored so we add j+=2xi (only odd considered)