As J.D.Dixon noted in his great books, there are just 5 proper primitive groups of degree 8, $P(8)=5$. I wanted to examine it with GAP, so wrote the following small program:
> G:=[];; > for k in [1..7] do G[k]:=PrimitiveGroup( 8,k ); od; > G[1]; G[2]; G[3]; G[4]; G[5]; G[6]; G[7];
Clearly, since $S_8$ and $A_8$ are not proper, so it works as we want. My question is how to "List all groups", for example as I called them above without writing the third line of the program? I examined some List commend line in the GAP, and could't list the groups not in the form I did above ( G[1]; G[2]; G[3]; G[4]; G[5]; G[6]; G[7]; ). Thanks for any help.