The main factors in the prevention of lung cancer are to avoid smoking and secondhand smoke, preventing exposure to environmental carcinogens and air pollution, and living an overall healthy lifestyle.