http://qs1969.pair.com?node_id=211728


in reply to Solving math equations

This can be solved in a less than a second. Think about the modulo division (a.k.a. remainder, written as "%") operator. Also take a look at modifying the equation so that you only need one loop.

That's far too many hints, I think...

--
IndyZ