Perfect numbers: Difference between revisions

Content added Content deleted
Line 722: Line 722:


arg low high .
arg low high .
if high=='' & low=='' then high=10000
if high=='' & low=='' then high=34000000
if low=='' then low=1
if low=='' then low=1
if high=='' then high=low
if high=='' then high=low
Line 766: Line 766:
Output (using the defaults):
Output (using the defaults):
<pre style="height:15ex;overflow:scroll">
<pre style="height:15ex;overflow:scroll">
6 is a perfect number.
6 is a perfect number.
28 is a perfect number.
28 is a perfect number.
496 is a perfect number.
496 is a perfect number.
8128 is a perfect number.
8128 is a perfect number.
33550336 is a perfect number.
</pre>
</pre>