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 12:36, 24 July 2021
, 2 years ago→{{header|REXX}}: added wording to the REXX section header to explain the program's options. .
(→{{header|REXX}}: added the computer programming language REXX.) |
m (→{{header|REXX}}: added wording to the REXX section header to explain the program's options. .) |
||
Line 90:
=={{header|REXX}}==
This REXX version allows the specification of the limit to search for these types of primes (in base ten), and it also
<br>allows the specification of (both) the leading and trailing decimal digit must be.
Also, if a negative or zero '''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.*/
|