The structure of the Earth.
The inner core of Earth has a diameter of about 1207 km, made up mainly of iron and nickel. It makes up the Earth's magnetic field.
This magnetic field repels charge particles in the solar storm, creating an invisible layer of protection for our planet. Without this field, the Earth would be very hot.
Currently, all we know about the Earth's core is just a hypothesis because there have not been any machines or probes going deep into the earth for more than 12 km.
According to scientists, the Sun is 4.6 billion years old and is now entering the final stage of a 5 billion year life cycle.
The Sun is the largest object of all sizes, accounting for 99.8% of the entire solar system. According to scientists, the temperature at the Sun's core is terribly high, approximately 15,000,000 degrees Celsius, even the halo around it has a temperature of about 1,000,000 degrees. If compared to the Earth core with the Sun core, it is clear that the absolute victory belongs to the Sun core.
But the question is to compare the temperature at the surface of the Sun and the Earth's core.
In fact, the surface of the Sun is not as hot as people imagine, according to many studies, the temperature there is about 5,537 degrees Celsius or 5,700 degrees Celsius (according to many other documents).
So, the Earth's core (6,000 degrees C + - 500) heats across the Sun's surface (5,500-5,700 degrees C).