optimize prime numbers generator

skip even-value numbers for n>2