Numerical study of the primitive equations in the small viscosity regime