Factors of an integer: Difference between revisions

Content added Content deleted
m (→‎optimized version: added/changed whitespace and comments.)
m (→‎optimized version: used a smaller font size for output, used a template for the output section.)
Line 4,130: Line 4,130:
if j*j==x then return a j b /*Was X a square? Then insert √ x */
if j*j==x then return a j b /*Was X a square? Then insert √ x */
return a b /*return the divisors of both lists. */</lang>
return a b /*return the divisors of both lists. */</lang>
'''output''' &nbsp; when the input used is: &nbsp; <tt> -6 &nbsp; 200 </tt>
{{out|output|text=&nbsp; when using the input of: &nbsp; &nbsp; <tt> -6 &nbsp; 200 </tt>}}

<pre style="height:65ex">
(Shown at &nbsp; <big>'''<sup>3</sup>/<sub>4</sub>'''</big> &nbsp; size.)
<pre style="font-size:75%;height:85ex">
n #divisors divisors
n #divisors divisors
══════ ═════════ ════════════════════════════════════════════════════════════
══════ ═════════ ════════════════════════════════════════════════════════════