Anonymous user
Talk:Semiprime: Difference between revisions
m
→a graphic view of the first 10k semi-primes: added a comment.
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: added a comment.) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 24:
== a graphic view of the first 10k semi-primes ==
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: (extra blanks were used to make the command's arguments easier to read)
$CALC
<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]. ▼
<br>The '''iota''' BIF generates the numbers 1 ──► 10,000 which are passed to the '''isSemiPrime''' BIF.▼
▲
(Output is shown at <sup>'''3'''</sup>/<sub>4</sub> size.)▼
<pre style="font-size:75%"> ▼
▲
║ translate{ isSemiPrime[ iota(10k) ], 'fefa'x, 10} ║▼
▲
1► · · · ■ · ■ · · ■ ■ · · · ■ ■ · · · · · ■ ■ · · ■ ■ · · · · · · ■ ■ ■ · · ■ ■ · · · · · · ■ · · ■ · ■ · · · ■ · ■ ■ · · · ■ · · ■ · · · ■ · · · · ■ · · ■ · · · · ■ · · ■ ■ ■ · · · ■ · ■ ■ ■ · · · · ·▼
The '''SQUISH''' option removes all blanks from the output (except for the index).
101► · · · · · ■ · · · · ■ · · · ■ · · ■ ■ · ■ ■ ■ · · · · · ■ · · · ■ ■ · · · · · · ■ ■ ■ · ■ ■ · · · · · · · · ■ · · ■ ■ · ■ · · · · ■ · · ■ · · · · · · · ■ ■ · · · · ■ · ■ · ■ · · · · · · ■ · · · · · ·▼
201► ■ ■ ■ · ■ ■ · · ■ · · · ■ ■ ■ · ■ ■ ■ · ■ · · · · ■ · · · · · · · · ■ · ■ · · · · · · · · · ■ · ■ · · · ■ ■ · · · · ■ · · ■ · · ■ · ■ · · · · · · ■ · · · ■ · · · · · · · · ■ · ■ · ■ · · · ■ · · ■ ■ ·▼
The '''GROUP''' option groups '''100''' output items per line.
301► ■ ■ ■ · ■ · · · ■ · · · · ■ · · · · ■ · ■ · ■ · · ■ ■ · ■ · · · · ■ ■ · · · ■ · ■ · · · · ■ · · · · · · · · ■ · · ■ · · ■ ■ · · ■ · · · · · ■ · · · · · ■ · · · ■ ■ · · · ■ · · · · ■ · ■ ■ ■ · · ■ · ·▼
401► · · ■ · · · ■ · · · ■ · ■ · ■ · ■ · · · · ■ · · · · ■ · · · · · · · · · ■ · · · · · · · ■ ■ ■ · · · ■ · ■ ■ · · · ■ · · · · · · · ■ · · ■ · ■ · ■ · · · · ■ · · ■ ■ · · ■ · · · ■ · · · ■ · · · ■ · · ·▼
501► ■ ■ · · ■ · · · · · ■ · · ■ ■ · ■ · ■ · · · · · · ■ ■ · ■ · · · ■ · ■ · ■ ■ · · · ■ ■ · ■ · · · · · ■ · ■ ■ · · · · ■ · · ■ · · ■ ■ · · · · · · ■ · · · · · ■ · ■ · ■ · · ■ · · ■ · ■ · · · · · ■ · · ·▼
601► · · · · · · · · · · ■ · · ■ · · · · · · · ■ ■ · · ■ · · ■ · · · ■ ■ ■ · · · · · · · · · · · · · ■ · · · · · ■ · · · · · · ■ · · · · ■ · ■ · ■ · · ■ · · · · ■ · ■ · · · ■ · ■ · ■ · · · · ■ ■ · ■ ■ ■ ·▼
701► · · ■ · · ■ ■ · · · · · ■ · · · ■ ■ · · ■ · ■ · · · · · · · ■ · · ■ · · ■ · · · · · · · ■ ■ · · ■ · · · ■ · ■ · · ■ · · · · ■ · · ■ ■ · · · ■ · · · · · · ■ ■ · ■ · · · ■ · · · ■ · ■ · ■ ■ · · · · ■ ·▼
╔═══════════════════════════════════════════════╗
801► · ■ ■ · · · ■ · · · · · ■ · ■ · ■ ■ · · · · · · · · · · · · ■ · · · ■ · · ■ · · ■ ■ ■ · · · · · ■ · ■ · · · · · · · · · · ■ · · ■ ■ · · ■ · ■ · · · · · · ■ ■ · · · · · · ■ · · ■ · · · ■ · ■ · · ■ ■ ·▼
901► ■ · · · ■ · · · · · · · ■ ■ · · ■ · · · ■ ■ ■ · · ■ · · · · · · ■ ■ · · · · ■ · · · ■ · · · · · ■ · ■ · · · ■ · · ■ ■ · ■ · · · ■ · · · · · · · ■ ■ · · · · ■ · · ■ · · ■ · · · ■ · · · ■ · ■ · · ■ · ·▼
╚═══════════════════════════════════════════════╝
1001► · · ■ · · ■ ■ · · · ■ · · · · · · ■ · · · · · · · · ■ · · · · · · · · · ■ · · · ■ ■ ■ · · ■ ■ · · · · · · · ■ · ■ · ■ · · · · · · · ■ · · · · · ■ · · · ■ · ■ · ■ ■ · · · · · · · · · · · ■ · · · · ■ ·▼
▲
▲ 9001►
▲
▲ 9201►
▲
▲
▲ 9501►
▲
▲
▲
▲
</pre>
|