Jump to content

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

m
(J)
Line 22:
=={{header|J}}==
Note that the cube root of the proper divisors is the fourth root of all divisors of a positive integer. That said, we do not need to find roots here:
<syntaxhighlight lang=J>F=: ('';1 1 1;1 3;,7) e.~ __ <@/:~@{:@q:"0 ]</syntaxhighlilghtsyntaxhighlight>
 
Task examples:
6,962

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.