I don't know what this is but it works like a charm
try to understand
go through hk's problem overview
2 is the only even prime, after which we can skip all even numbers when iterating for primes