Numbers which are the cube roots of the product of their proper divisors: Difference between revisions

m
→‎{{header|Wren}}: Changed to Wren S/H
(Added Sidef)
m (→‎{{header|Wren}}: Changed to Wren S/H)
Line 2,005:
{{libheader|Wren-long}}
{{libheader|Wren-fmt}}
<syntaxhighlight lang="ecmascriptwren">import "./math" for Int, Nums
import "./long" for ULong, ULongs
import "./fmt" for Fmt
Line 2,049:
</pre>
Alternatively and a bit quicker, inspired by the C++ entry and the OEIS comment that (apart from 1) n must have exactly 8 divisors:
<syntaxhighlight lang="ecmascriptwren">import "./fmt" for Fmt
 
var divisorCount = Fn.new { |n|
9,488

edits