Achilles numbers: Difference between revisions
Content added Content deleted
m (Python example) |
|||
Line 2,334: | Line 2,334: | ||
def is_Achilles(n): |
def is_Achilles(n): |
||
p = |
p = factorint(n).values() |
||
return all(i > 1 for i in p) and gcd(*p) == 1 |
return all(i > 1 for i in p) and gcd(*p) == 1 |
||
Line 2,394: | Line 2,394: | ||
[10000, 99999]: 192 |
[10000, 99999]: 192 |
||
[100000, 999999]: 664 |
[100000, 999999]: 664 |
||
</pre> |
</pre> |
||
=={{header|Raku}}== |
=={{header|Raku}}== |