find the largest perfect number less than $10,000$ in Maple Can anyone tell me how to find largest perfect number less than 10000 in maple? 
Actually, I know how to find all the perfect numbers less than or equal to 10000 but I don't know how to find the largest one within the same code?

Well if you know how to find them all, I suppose you use a loop.
So before your loop add a variable $max=0$. During the loop, for each perfect number $p$ you find, check if $p>max$ and if it is, then do $max=p$.
The value of $max$ after the end of the loop will be the greatest number found ;)
