EKG sequence convergence: Difference between revisions
Content added Content deleted
(→{{header|Perl 6}}: Added stretch goal (plus a bonus case converging all EKGs), and updated to new task spec.) |
(→{{header|Python}}: Moved to example it applies to.) |
||
Line 304: | Line 304: | ||
=={{header|Python}}== |
=={{header|Python}}== |
||
⚫ | |||
===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 |
||
from functools import lru_cache |
from functools import lru_cache |