Factors of an integer: Difference between revisions
Content added Content deleted
m (→{{header|Phix}}: added syntax colouring the hard way) |
|||
Line 4,543: | Line 4,543: | ||
=={{header|Phix}}== |
=={{header|Phix}}== |
||
There is a builtin factors(n), which takes an optional second parameter to include 1 and n |
There is a builtin factors(n), which takes an optional second parameter to include 1 and n: |
||
<!--<lang Phix>(phixonline)--> |
|||
<span style="color: #0000FF;">?</span><span style="color: #7060A8;">factors</span><span style="color: #0000FF;">(</span><span style="color: #000000;">12345</span><span style="color: #0000FF;">,</span><span style="color: #000000;">1</span><span style="color: #0000FF;">)</span> |
|||
<!--</lang>--> |
|||
{{out}} |
{{out}} |
||
<pre> |
<pre> |