Munchausen numbers: Difference between revisions

Content added Content deleted
(add PicoLisp)
Line 898: Line 898:


=={{header|PicoLisp}}==
=={{header|PicoLisp}}==
<lang PicoLisp>(for X 5000
<lang PicoLisp>(for N 5000
(and
(and
(=
(=
X
N
(sum
(sum
'((N) (** N N))
'((N) (** N N))
(mapcar format (chop X)) ) )
(mapcar format (chop N)) ) )
(println X) ) )</lang>
(println N) ) )</lang>
{{out}}
{{out}}
<pre>
<pre>