Photon energy of black-body

I have calculate that the mean approximate photon energy of a black-body spectrum which is emitted by an object at a temperature of 1 million K is 300eV. Can somebody confirm me that? My second doubt is: the wavelength at which this spectrum reaches a peak corresponds to a "longer" or to a "shorter" wavelength than that of the black-body spectrum emitted by the sun?
Many thanks

I did not do any calculation about the sun but think that the spectrum of solar radiation is close to that of a black body with a temperature of circa 5,800 K and so the mean approximate photon energy is 1.74eV. If that so, are the wavelength at which this spectrum of the object at at a temperature of 1 million K that reaches a peak corresponds to a much shorter wavelength than that of the black-body spectrum emitted by the sun?