Anonymous user
Ulam spiral (for primes)/REXX: Difference between revisions
m
→REXX: reduce the font size from 1/4 to 1/8.
(added a larger Ulam prime spiral.) |
m (→REXX: reduce the font size from 1/4 to 1/8.) |
||
Line 1:
==REXX==
This is the output for the REXX program to produce a Ulam spiral (for primes);
'''Output''' when the following is used for input: <tt> 416 </tt>
(Shown at
<b>
<pre style="font-size:
▀ ▄ ▀ ▀ ▀ ▄▀ ▀ ▄▀ ▀ ▄ ▀ ▀ ▄ ▄ ▀ ▄ ▄ ▄ ▄ ▄ ▀ ▀ ▀ ▀ ▄ ▀ ▀ ▀ ▄ ▀▄ ▄ ▄ ▄ ▀ ▀ ▄ ▀ ▄ ▀ ▀▄ ▀ ▄ ▄ ▀ ▀ ▄ ▀▄ ▄ ▄ ▄▀ ▄▀ ▀ ▄ ▀ ▀ ▀ ▀
▀▄ ▄ ▄ ▄▀ ▀ ▀ ▄ ▀▄ ▄ ▀▄ ▀ ▀▄ ▀ ▀ ▀ ▄ ▀ ▄ ▀ ▄ ▀ ▀ ▀ ▄ ▄▀ ▄ ▄ ▀▄ ▀▄ ▄ ▄ ▄ ▀ ▀ ▀ ▀ ▀ ▀ ▄ ▄ ▀ ▄ ▄ ▄ ▀ ▄ ▀ ▄ ▀▄ ▀ ▀ ▄ ▀ ▀
Line 218 ⟶ 219:
1 is the starting point, 173056 numbers used, 15758 primes found, largest prime: 173053
</pre>
</b>
The last line shown (above) is
<pre>
1 is the starting point, 173056 numbers used, 15758 primes found, largest prime: 173053
|