Munchausen numbers

Revision as of 06:19, 20 February 2021 by Drkameleon (talk | contribs) (Replaced content with "=={{header|Arturo}}== <lang rebol>munchausen?: function [n][ n = sum map split to :string n 'digit [ d: to :integer digit d^d ] ] loop 1..5000 'x...")

Arturo

<lang rebol>munchausen?: function [n][

   n = sum map split to :string n 'digit [
       d: to :integer digit
       d^d
   ]

]

loop 1..5000 'x [

   if munchausen? x ->
       print x

]</lang>

Output:
1
3435