On the three-dimensional primitive equations