Group extensions by primary abelian groups