Let $f(n)$ be the product of all factors of $n$. Find all natural numbers $n$ such that $f(n)$ is not a perfect power of $n$.
Source: Junior Olympiad of Malaysia 2014 P1
Tags: number theory
Let $f(n)$ be the product of all factors of $n$. Find all natural numbers $n$ such that $f(n)$ is not a perfect power of $n$.