News for hackers. Stuff that matters.
Re:A happy numeric coincidence by lmcarreiro on Wednesday January 02, 2019 @11:13AM (#18807155)
After you calc X^Y, when you will calc X^(Y+1), doesn't it worth to calc using the previous result (X^Y)*X instead of another power X^(Y+1) ?
Re:A happy numeric coincidence by kazinator on Wednesday January 02, 2019 @06:43PM (#18811471)
You will find here that the run-time is swamped by the digit breakdown and summing, so that exponentiation versus accumulated product doesn't make a palpable difference.