Sequence: smallest number greater than previous term with exactly n divisors: Difference between revisions
Content added Content deleted
m (→{{header|Phix}}: added limit of 32 results) |
Drkameleon (talk | contribs) (Added Arturo implementation) |
||
Line 224: | Line 224: | ||
The first 15 terms of the sequence are: 1 2 4 6 16 18 64 66 100 112 1024 1035 4096 4288 4624 |
The first 15 terms of the sequence are: 1 2 4 6 16 18 64 66 100 112 1024 1035 4096 4288 4624 |
||
</pre> |
</pre> |
||
=={{header|Arturo}}== |
|||
<lang rebol>i: new 0 |
|||
next: new 1 |
|||
MAX: 15 |
|||
while [next =< MAX][ |
|||
if next = size factors i [ |
|||
prints ~"|i| " |
|||
inc 'next |
|||
] |
|||
inc 'i |
|||
] |
|||
print ""</lang> |
|||
{{out}} |
|||
<pre>1 2 4 6 16 18 64 66 100 112 1024 1035 4096 4288 4624</pre> |
|||
=={{header|AutoHotkey}}== |
=={{header|AutoHotkey}}== |