Factors of an integer: Difference between revisions

Line 2,876:
If x <> 1 Then Factors = Factors & ", " & corresponding_factors
End Function</lang>
{{out}}
<pre>cell formula is "=Factors(840)"
resultant value is "1, 2, 3, 4, 5, 6, 7, 8, 10, 12, 14, 15, 20, 21, 24, 28, 30, 35, 40, 42, 56, 60, 70, 84, 105, 120, 140, 168, 210, 280, 420, 840"</pre>
 
=={{header|Wortel}}==