Permuted multiples: Difference between revisions

Content added Content deleted
No edit summary
m (→‎{{header|Wren}}: Minor tidy)
Line 1,245: Line 1,245:
{{libheader|Wren-math}}
{{libheader|Wren-math}}
One thing that's immediately clear is that the number must begin with '1' otherwise the higher multiples will have more digits than it has.
One thing that's immediately clear is that the number must begin with '1' otherwise the higher multiples will have more digits than it has.
<syntaxhighlight lang="ecmascript">import "/math" for Int
<syntaxhighlight lang="wren">import "./math" for Int


// assumes l1 is sorted but l2 is not
// assumes l1 is sorted but l2 is not