Anonymous user
Talk:Semiprime: Difference between revisions
→a graphic view of the first 10k semiprimes: added some comments. -- ~~~~
m (→a graphic view of the first 10k semiprimes: finished added the data to the section. -- ~~~~) |
(→a graphic view of the first 10k semiprimes: added some comments. -- ~~~~) |
||
Line 27:
<br><br>The command used was:
<lang rexx>$CALC translate{ isSemiPrime[ iota(1,10k) ], 'dcfa'x, 10}</lang>
The terminal screen was 200 bytes wide.
The '''translate''' BIF converts ones and zeroes to ▄ and ·▼
<br>The '''isSemiPrime''' BIF outputs a 0 (zero) to indicate the number isn't semiprime, or a 1 (one) to indicate a semiprime.
▲<br>The '''translate''' BIF converts (for easier perusing) ones and zeroes to ▄ and · [the low square bullets are the semiprimes].
<br>The '''iota''' BIF generates the numbers 1 ──► 10,000 which are passed to the '''isSemiPrime''' BIF.
<pre>
|