Skip to content

Commit

Permalink
Fix IsNilpotentGroup checking for p-groups
Browse files Browse the repository at this point in the history
The trivial group is a p-group in GAP, but 1 is *not* a prime power.
  • Loading branch information
fingolfin committed Apr 10, 2018
1 parent 9e65169 commit 30d006f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/grp.gi
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,9 @@ InstallMethod( IsNilpotentGroup,
SetIsPGroup( G, true );
SetPrimePGroup( G, SmallestRootInt( s ) );
return true;
elif s = 1 then
SetIsPGroup( G, true );
return true;
else
SetIsPGroup( G, false );
fi;
Expand Down

0 comments on commit 30d006f

Please sign in to comment.