Gevrey class regularity for the primitive equations in space dimension 2