From What a major solar storm could do to our planet:

Solar flares contain a colossal amount of energy—enough, in a large one, to meet our planet’s power needs for the next fifteen or twenty thousand years.

That is a lot of years worth of energy.