Inconsummate numbers in base 10: Difference between revisions

Content added Content deleted
m (→‎{{header|Wren}}: Changed to Wren S/H)
Line 1,411: Line 1,411:


In fact it still finds the 1,000th number if you limit the search to the first 249,999 (but not 248,999) numbers which may be where the first magic number of '250' comes from in the Pascal/Phix entries.
In fact it still finds the 1,000th number if you limit the search to the first 249,999 (but not 248,999) numbers which may be where the first magic number of '250' comes from in the Pascal/Phix entries.
<syntaxhighlight lang="ecmascript">import "./math" for Int
<syntaxhighlight lang="wren">import "./math" for Int
import "./fmt" for Fmt
import "./fmt" for Fmt


Line 1,444: Line 1,444:
{{trans|Python}}
{{trans|Python}}
...though much quicker as I'm using lower figures for the second component of the minDigitSums tuples.
...though much quicker as I'm using lower figures for the second component of the minDigitSums tuples.
<syntaxhighlight lang="ecmascript">import "./math" for Int, Nums
<syntaxhighlight lang="wren">import "./math" for Int, Nums
import "./fmt" for Fmt
import "./fmt" for Fmt