By measuring the spectrum of wavelengths of light from a star, we know that its surface temperature is 5700 K. By measuring the rate at which we receive its energy on Earth, we know that it is radiating a total of 3.91×10^26 J/s and behaves nearly like an ideal blackbody. Use this information to calculate the diameter of the star.