Anonymous user
Talk:Semiprime: Difference between revisions
m
→a graphic view of the first 10k semi-primes: increased the output window to show 100 numbers per row.
m (→a graphic view of the first 10k semi-primes: reduced clutter in the section header's example.) |
m (→a graphic view of the first 10k semi-primes: increased the output window to show 100 numbers per row.) |
||
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:
$CALC translate{ isSemiPrime[ iota(10k) ], 'fefa'x, 10} ;;;
The terminal screen was
<br>The '''isSemiPrime''' BIF outputs a '''0''' (zero) to indicate the number isn't semi-prime, or a '''1''' (unity) to indicate a semi-prime.
<br>The '''translate''' BIF converts (for easier perusing) ones and zeroes to ■ and <b> · </b> [the square bullets are the semi-primes].
Line 37:
║ translate{ isSemiPrime[ iota(10k) ], 'fefa'x, 10} ║
╚═══════════════════════════════════════════════════╝
1► · · · ■ · ■ · · ■ ■ · · · ■ ■ · · · · · ■ ■ · · ■ ■ · · · · · · ■ ■ ■ · · ■ ■ · · · · · · ■ · · ■ · ■ · · · ■ · ■ ■ · · · ■ · · ■ · · · ■ · · · · ■ · · ■ · · · · ■ · · ■ ■ ■ · · · ■ · ■ ■ ■ · · · · ·
1001► ·
</pre>
|