optimized by skipping all even numbers