Anonymous user
Primes whose first and last number is 3: Difference between revisions
Primes whose first and last number is 3 (view source)
Revision as of 13:05, 24 July 2021
, 2 years ago→{{header|REXX}}: added highlighting to the REXX section header.
m (→{{header|REXX}}: changed wording in the REXX section header.) |
m (→{{header|REXX}}: added highlighting to the REXX section header.) |
||
Line 97:
<br>allows the specification of what (both) the leading and trailing decimal digit must be.
Also, if a negative '''cols''' is specified, only the ''count'' of primes found is shown.
<lang ring>/*REXX pgm finds and displays primes (base ten) that contain a leading and trailing 3. */
parse arg hi cols dig . /*obtain optional argument from the CL.*/
|