Combinations with repetitions/Square digit chain: Difference between revisions
Combinations with repetitions/Square digit chain (view source)
Revision as of 15:24, 11 October 2017
, 6 years ago→{{header|Kotlin}}: Minor changes to wording of preamble.
(Added Kotlin) |
m (→{{header|Kotlin}}: Minor changes to wording of preamble.) |
||
Line 137:
=={{header|Kotlin}}==
To achieve reasonable performance, the Kotlin entry for the [[Iterated digits squaring]] task already used a similar approach to that required by this task for k = 8.
So the following generalizes that code to deal with values of k up to 17 (which requires 64 bit integers) and to
<lang scala>// version 1.1.51
|