Say I have a number, like 60. Which has a prime factorization of $$[2,2,3,5]$$ What function would take in 60 and remove redundant factors? In this case, it should return 30
Edit: I did some more research, and the term I'm wording in looking for is reducing a number to its distinct factors