On the regularity of the primitive equations of the ocean