PhyFl18–SS2.2.21 It takes the gamma rays (wavelength around 10pm) anywhere from 50,000 years to 10 million years to get from the core of the sun to the surface of the sun (then only 8.2 minutes to get to earth). The deadly gamma wave is destructively interfered with by other wavelets of energy while it is on its outer journey inside the sun. When waves are destructively interfered with they lose some of their energy (which shows up as lower frequency). By the time the wave packet of energy that was originally 10pm in wavelength gets to the surface of the sun and is ready for the 8.2 minute journey to the earth its wavelengths are scattered somewhere between from 10nm (UV) to 1mm (far IR). So that original deadly gamma ray gives us our heat, our visible light and the still dangerous UV light.