Munchausen numbers: Difference between revisions
Content added Content deleted
m (added highlighting, added whitespace for the TOC.) |
m (→version 2: changed highlighting, used a template for the output section.) |
||
Line 1,874: | Line 1,874: | ||
This REXX version uses the requirement that '''0**0''' equals zero. |
This REXX version uses the requirement that '''0**0''' equals zero. |
||
It is about 2.5 times faster than version 1. |
It is about '''2.5''' times faster than REXX version 1. |
||
For the high limit of '''5,000''', optimization isn't needed. But for much higher limits, optimization becomes significant. |
For the high limit of '''5,000''', optimization isn't needed. But for much higher limits, optimization becomes significant. |
||
Line 1,890: | Line 1,890: | ||
end /*while*/ /* [↑] get a digit.*/ |
end /*while*/ /* [↑] get a digit.*/ |
||
return $==ox /*it is or it ain't.*/</lang> |
return $==ox /*it is or it ain't.*/</lang> |
||
{{out|output|text= when using the default input:}} |
|||
'''output''' |
|||
<pre> |
<pre> |
||
1 is a Münchhausen number. |
1 is a Münchhausen number. |