Jump to content

Primes whose first and last number is 3: Difference between revisions

m
→‎{{header|REXX}}: elided a word from the REXX section header.
m (→‎{{header|REXX}}: added wording to the REXX section header to explain the program's options. .)
m (→‎{{header|REXX}}: elided a word from the REXX section header.)
Line 93:
<br>allows the specification of (both) the leading and trailing decimal digit must be.
 
Also, &nbsp; if a negative or zero &nbsp; '''cols''' &nbsp; is specified, &nbsp; 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.*/
Cookies help us deliver our services. By using our services, you agree to our use of cookies.