Proper divisors: Difference between revisions

Content added Content deleted
(Added a detail)
m (→‎version 2: changed wording in the REXX section header.)
Line 3,457: Line 3,457:
<br>It also allows the specification of the ranges (for display and for finding the maximum), and allows for extra numbers.
<br>It also allows the specification of the ranges (for display and for finding the maximum), and allows for extra numbers.


With the (subroutine) optimization, it's over twenty times faster.
With the (function) optimization, it's over &nbsp; '''20''' &nbsp; times faster.
<lang rexx>/*REXX program finds proper divisors (and count) of integer ranges; finds the max count.*/
<lang rexx>/*REXX program finds proper divisors (and count) of integer ranges; finds the max count.*/
parse arg bot top inc range xtra /*obtain optional arguments from the CL*/
parse arg bot top inc range xtra /*obtain optional arguments from the CL*/