Anonymous user
Talk:Semiprime: Difference between revisions
m
→a graphic view of the first 10k semiprimes: reduced the size of the output font (75%), changed the semi-prime glyph, showed the options used in the output.
(→a graphic view of the first 10k semiprimes: added some comments. -- ~~~~) |
m (→a graphic view of the first 10k semiprimes: reduced the size of the output font (75%), changed the semi-prime glyph, showed the options used in the output.) |
||
Line 23:
:::I don't agree with "The use of any phrase (or word) that is under contention (disagreement) should never be used in a definition". Context and audience mean a lot. --[[User:Paddy3118|Paddy3118]] ([[User talk:Paddy3118|talk]]) 09:04, 21 February 2014 (UTC)
== a graphic view of the first 10k
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(
The terminal screen was 200 bytes wide.
<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
<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(1,10k) ], 'dcfa'x, 10} ║▼
1► · · · ▄ · ▄ · · ▄ ▄ · · · ▄ ▄ · · · · · ▄ ▄ · · ▄ ▄ · · · · · · ▄ ▄ ▄ · · ▄ ▄ · · · · · · ▄ · · ▄ · ▄ · · · ▄ · ▄ ▄ · · · ▄ · · ▄ · · · ▄ · · · · ▄ · · ▄ · · · · ▄ · · ▄ ▄ ▄ · · · ▄ · ▄ ▄ ▄ ·▼
╚══════════════════════════════════════════════════════════════════════════╝
97► · · · · · · · · · ▄ · · · · ▄ · · · ▄ · · ▄ ▄ · ▄ ▄ ▄ · · · · · ▄ · · · ▄ ▄ · · · · · · ▄ ▄ ▄ · ▄ ▄ · · · · · · · · ▄ · · ▄ ▄ · ▄ · · · · ▄ · · ▄ · · · · · · · ▄ ▄ · · · · ▄ · ▄ · ▄ · · · · ·▼
▲ 9793►
9985► ▄ ▄ ▄ · ▄ · ▄ · ▄ · ▄ · ▄ ▄ · ·▼
▲
</pre>
|