Originally Posted By: Lonkero
maybe I could shave some of mine if I understood what the heck jochen is doing with " do $ = $/10+$ mod 10 until $<10"

that does not make any sense to me. he was able to skip subsequent additions by doing a mod 10.


Simple..

$/10 cuts the last digit
+ $ mod 10 adds the last digit

so all it does is calculating the digital root of numbers up to 32bit integer ;\)
I totally miss begin to see were you do that though \:o



Edited by Jochen (2014-07-07 10:32 AM)
_________________________