EKG sequence convergence: Difference between revisions

Content added Content deleted
(→‎{{header|Perl 6}}: Added Perl 6 solution)
(→‎Python: Using prime factor generation: Marked as incorrect when N is composite)
Line 277: Line 277:


=={{header|Python}}==
=={{header|Python}}==
{{incorrect|Python|EKG(10) produces: EKG(10): 1, 2, 4, 6, 3, 9, 12, 8, 10, 5}}
===Python: Using prime factor generation===
===Python: Using prime factor generation===
<lang python>from itertools import count, islice, takewhile
<lang python>from itertools import count, islice, takewhile