It depends on the energy released by radioactive decay of uranium and other heavy long lived isotopes in the Earth's core and the internal heat of the Earth is produced by the original heat of formation that resulted from accretion and gravitational contraction.