This part is an infinite loop because x is not changed. Anyway, surely you should just use Gap's sorting functionality.
On 15/11/2013, at 8:15 AM, sam johnson <liveat1...@gmail.com<mailto:liveat1...@gmail.com>> wrote: * while x > 0 do* * if L[x] > max then* * max := L[x];* * fi;* * od;* Professor Gordon Royle School of Mathematics and Statistics University of Western Australia gordon.ro...@uwa.edu.au<mailto:gordon.ro...@uwa.edu.au> _______________________________________________ Forum mailing list Forum@mail.gap-system.org http://mail.gap-system.org/mailman/listinfo/forum