Perhaps your loop beginning
repeat while (e>1)
is not terminating because, due to some logic error, e never becomes <= 1. As a start on debugging, try adding the command "print e;" at the beginning of your loop, to see what values e is taking.
Bob Fourer
am...@googlegroups.com
=======