The sun can erupt with flares more energetic than 30 billion times the yield of all nuclear weapons ever detonated.