If one excludes the blank and comment lines , the instructors solution is
17 lines of code.
It's a pretty "nifty" solution and if you manage to shrink it down to 10 you must really have some code.
Remember though good programming habits dictates that your code must be readable and understandable by the average programmer. Are you really sure one does not have to be a math's and/or computer whizz to understand you code.
[This message has been edited by Johannes de Jong (edited October 08, 2001).]