Amicable pairs: Difference between revisions

Content deleted Content added
Not a robot (talk | contribs)
Add SETL
PureFox (talk | contribs)
m →‎{{header|Wren}}: Minor tidy
Line 6,722:
{{libheader|Wren-fmt}}
{{libheader|Wren-math}}
<syntaxhighlight lang="ecmascriptwren">import "./fmt" for Fmt
import "./math" for Int, Nums
 
var a = List.filled(20000, 0)
Line 6,731:
var m = a[n]
if (m > n && m < 20000 && n == a[m]) {
SystemFmt.print(" %(Fmt.d(5, n))$5d and %(Fmt.d(5$5d", n, m))")
}
}</syntaxhighlight>