Casting out nines: Difference between revisions
Content added Content deleted
Drkameleon (talk | contribs) (Added Arturo implementation) |
|||
Line 1,078: | Line 1,078: | ||
Trying 22 numbers instead of 99 numbers saves 77.777778%</pre> |
Trying 22 numbers instead of 99 numbers saves 77.777778%</pre> |
||
=={{header|Mathematica}}== |
=={{header|Mathematica}}/{{header|Wolfram Language}}== |
||
Task 1: Simple referenced implementation that handles any base: |
Task 1: Simple referenced implementation that handles any base: |
||
<lang mathematica>Co9[n_, b_: 10] := |
<lang mathematica>Co9[n_, b_: 10] := |