Talk:Semiprime: Difference between revisions
Content added Content deleted
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.) |
m (→a graphic view of the first 10k semi-primes: added whitespace and highlighting to the talk section header.) |
||
Line 28: | Line 28: | ||
<lang rexx>$CALC translate{ isSemiPrime[ iota(10k) ], 'fefa'x, 10} ;;; Group 0 echoOptions</lang> |
<lang rexx>$CALC translate{ isSemiPrime[ iota(10k) ], 'fefa'x, 10} ;;; Group 0 echoOptions</lang> |
||
The terminal screen was 200 bytes wide. |
The terminal screen was 200 bytes wide. |
||
<br>The '''isSemiPrime''' BIF outputs a 0 (zero) to indicate the number isn't |
<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 · [the square bullets are the semi-primes]. |
<br>The '''translate''' BIF converts (for easier perusing) ones and zeroes to ■ and · [the square bullets are the semi-primes]. |
||
<br>The '''iota''' BIF generates the numbers 1 ──► 10,000 which are passed to the '''isSemiPrime''' BIF. |
<br>The '''iota''' BIF generates the numbers 1 ──► 10,000 which are passed to the '''isSemiPrime''' BIF. |