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''' &nbsp; when the following is used for input: &nbsp; <tt> 416 </tt>
 
(Shown at one&nbsp; quarter<sup>'''1'''</sup>/<sub>'''8'''</sub> &nbsp; size.)
<b>
<pre style="font-size:2513%">
▀ ▄ ▀ ▀ ▀ ▄▀ ▀ ▄▀ ▀ ▄ ▀ ▀ ▄ ▄ ▀ ▄ ▄ ▄ ▄ ▄ ▀ ▀ ▀ ▀ ▄ ▀ ▀ ▀ ▄ ▀▄ ▄ ▄ ▄ ▀ ▀ ▄ ▀ ▄ ▀ ▀▄ ▀ ▄ ▄ ▀ ▀ ▄ ▀▄ ▄ ▄ ▄▀ ▄▀ ▀ ▄ ▀ ▀ ▀ ▀
▀▄ ▄ ▄ ▄▀ ▀ ▀ ▄ ▀▄ ▄ ▀▄ ▀ ▀▄ ▀ ▀ ▀ ▄ ▀ ▄ ▀ ▄ ▀ ▀ ▀ ▄ ▄▀ ▄ ▄ ▀▄ ▀▄ ▄ ▄ ▄ ▀ ▀ ▀ ▀ ▀ ▀ ▄ ▄ ▀ ▄ ▄ ▄ ▀ ▄ ▀ ▄ ▀▄ ▀ ▀ ▄ ▀ ▀
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 reshownre-shown here (below) at 100%:
<pre>
1 is the starting point, 173056 numbers used, 15758 primes found, largest prime: 173053