Primitively generated Hall algebras