Finite element solutions of the Euler equations in primitive variables form