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

Add Factor
m (→‎{{header|Perl}}: paste in haste...)
(Add Factor)
Line 267:
5,000th: 23,118
50,000th: 223,735
</pre>
 
=={{header|Factor}}==
{{works with|Factor|0.99 2022-04-03}}
<syntaxhighlight lang=factor>USING: formatting grouping io kernel lists lists.lazy math
prettyprint project-euler.common ;
 
: A111398 ( -- list )
L{ 1 } 2 lfrom [ tau 8 = ] lfilter lappend-lazy ;
 
50 A111398 ltake list>array 10 group simple-table. nl
499 4999 49999
[ [ 1 + ] keep A111398 lnth "%5dth: %d\n" printf ] tri@</syntaxhighlight>
{{out}}
<pre>
1 24 30 40 42 54 56 66 70 78
88 102 104 105 110 114 128 130 135 136
138 152 154 165 170 174 182 184 186 189
190 195 222 230 231 232 238 246 248 250
255 258 266 273 282 285 286 290 296 297
 
500th: 2526
5000th: 23118
50000th: 223735
</pre>
 
1,808

edits