This is my First Java Script Application. The algorithm is very simple, and should only be used for
small natural numbers. (Natural numbers that are less than a million, for example.)
Caution: the algorithm only works if you put in natural numbers. If you put in decimals, or
letters, the algorithm will give erroneous output.