Numbers which are the cube roots of the product of their proper divisors: Difference between revisions
Numbers which are the cube roots of the product of their proper divisors (view source)
Revision as of 16:56, 7 January 2024
, 5 months ago→{{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="
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="
var divisorCount = Fn.new { |n|
|