Proper divisors: Difference between revisions

Content added Content deleted
m (→‎{{header|Wren}}: Minor tidy)
Line 6,572: Line 6,572:
{{libheader|Wren-fmt}}
{{libheader|Wren-fmt}}
{{libheader|Wren-math}}
{{libheader|Wren-math}}
<syntaxhighlight lang="ecmascript">import "/fmt" for Fmt
<syntaxhighlight lang="wren">import "./fmt" for Fmt
import "/math" for Int
import "./math" for Int


for (i in 1..10) System.print("%(Fmt.d(2, i)) -> %(Int.properDivisors(i))")
for (i in 1..10) System.print("%(Fmt.d(2, i)) -> %(Int.properDivisors(i))")