Anonymous user
Talk:Semiprime: Difference between revisions
m
→a graphic view of the first 10k semiprimes: added a new section. -- ~~~~
m (→task clarification: added a new section showing 10k semiprimes. -- ~~~~) |
m (→a graphic view of the first 10k semiprimes: added a new section. -- ~~~~) |
||
Line 26:
For those that are interested, here is the output of my $CALC (REXX) program that shows a binary map of the first 10k semiprimes.
<br><br>The command used was:
<lang rexx>$CALC translate{ isSemiPrime[ iota(1,10k) ], 'dcfa'x, 10}</lang
The '''translate''' BIF converts ones and zeroes to ▄ and ·
<br>The '''iota''' BIF generates the numbers 1 ──► 10,000 which are passed to the '''isSemiPrime''' BIF.
<pre>
╔═════════════════════════════════════════════════════╗
║ translate{ isSemiPrime[ iota(1,10k) ], 'dcfa'x, 10} ║
╚═════════════════════════════════════════════════════╝
</pre>
|