A positive integer $k\ge 1$ is given. The object is to find all positive integers $n$ with $\varphi(n)=k$
Is there an EFFICIENT algorithm to determine the set of numbers ?
It is clear that we can rule out prime factors $p\ge k+2$ and that we can also bound the exponents corresponding to all possible prime factors. But this brute force method is very slow. Is there a trick to get the set faster ? In particular nice would be an implementation in PARI/GP.
If I remember right, I asked a question about whether the set can be determined in a finite amount of time (which obviously is the case), but I am not sure whether I also asked for an efficient method. If so, I apologize for the duplicate.