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

added Arturo
(Added Visual Basic .NET version)
(added Arturo)
Line 179:
5000th: 23118
50000th: 223735"</syntaxhighlight>
 
=={{header|Arturo}}==
 
<syntaxhighlight lang="arturo">prints "First 50 numbers which are the cube root of the product of their proper divisors:"
 
[i n]: [0 0]
while -> i < 50000 [
if or? 1=n 8=size factors n [
if i < 50 [
if zero? i % 10 -> prints "\n"
prints pad ~"|n|" 4
]
if 50=i -> print "\n"
if in? i [499 4999 49999] -> print [pad ~"|i+1|th:" 8 n]
'i+1
]
'n+1
]</syntaxhighlight>
 
{{out}}
 
<pre>First 50 numbers which are the cube root of the product of their proper divisors:
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>
 
=={{header|BASIC}}==
1,532

edits