Factors of an integer: Difference between revisions
Content added Content deleted
(Added an APL implementation) |
|||
Line 133: | Line 133: | ||
+64: 1, 64, 2, 32, 4, 16, 8 |
+64: 1, 64, 2, 32, 4, 16, 8 |
||
</pre> |
</pre> |
||
=={{header|APL}}== |
|||
<lang APL> factors←{(0=(⍳⍵)|⍵)/⍳⍵} |
|||
factors 12345 |
|||
1 3 5 15 823 2469 4115 12345 |
|||
factors 720 |
|||
1 2 3 4 5 6 8 9 10 12 15 16 18 20 24 30 36 40 45 48 60 72 80 90 120 144 180 240 360 720</lang> |
|||
=={{header|AutoHotkey}}== |
=={{header|AutoHotkey}}== |