Factors of an integer: Difference between revisions

Content added Content deleted
(Go solution)
m (→‎{{header|REXX}}: clarified p.='' comment.)
Line 1,127: Line 1,127:
divs: procedure; parse arg x .
divs: procedure; parse arg x .
if x==1 then return 1 /*hand special case of unity (1). */
if x==1 then return 1 /*hand special case of unity (1). */
p.='' /*initilize both lists to empty. */
p.='' /*initilize P.1 & P.2 lists to empty*/


do j=2 /*divide by all divisors < sqrt(x). */
do j=2 /*divide by all divisors < sqrt(x). */