A sphere. It has the smallest ratio of Surface/volume. Since heat is dissipated by radiation or contact and both, depending on the outside surface. Sticking with normal 3D geometry, that would be a sphere, as it is the shape that minimises surface area to volume, and you can only lose heat from the surface of an object.