Jump to content

Talk:Semiprime: Difference between revisions

m
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 &nbsp; '''translate''' &nbsp; BIF converts ones and zeroes to &nbsp; ▄ &nbsp; and &nbsp; ·
<br>The &nbsp; '''iota''' &nbsp; BIF generates the numbers &nbsp; 1 ──► 10,000 &nbsp; which are passed to the &nbsp; '''isSemiPrime''' &nbsp; BIF.
<pre>
╔═════════════════════════════════════════════════════╗
║ translate{ isSemiPrime[ iota(1,10k) ], 'dcfa'x, 10} ║
╚═════════════════════════════════════════════════════╝
 
</pre>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.