Factors of an integer: Difference between revisions

m
→‎optimized version: removed a duplicate line. -- ~~~~
m (→‎optimized version: added comment, changed output format of integers. -- ~~~~)
m (→‎optimized version: removed a duplicate line. -- ~~~~)
Line 1,937:
===optimized version===
This REXX version has no effective limits on the number of digits in the number to be factored.
<br>It also indicates primes in the output.
<lang rexx>/*REXX program displays (in order) the divisors of positive integer(s).*/
/*REXX program displays (in order) the divisors of positive integer(s).*/
@.=; @.1=right('{unity}',22); @.2=right('[prime]',20) /*unity,prime*/
parse arg low high .; high=word(high low 20,1); low=word(low 1,1)