1 | initial version |
Tips:
itertools.product
for iterating over a cartesian productis_square()
rather than computing the square root and checking whether it is in ZZ
is_perfect_power
2 | No.2 Revision |
Tips:
itertools.product
for iterating over a cartesian productis_square()
rather than computing the square root and checking whether it is in ZZ
is_perfect_power