Suppose , $\ n\ $ is composite and $\ p\ $ a prime factor of $\ n\ $
Then , we have $3^p-2^p\mid 3^n-2^n$ which can be seen by setting
$x:=3^p$ , $y:=2^p$ and considering $x-y\mid x^k-y^k$ for every positive integer $k$.
To show that $3^p-2^p$ is a proper factor, it is sufficient to prove
$1<3^p-2^p<3^n-2^n$
$$f(x)=3^x-2^x$$ has derivate $$f'(x)=3^x\ln(3)-2^x\ln(2)$$ which is positive for $x\ge 0$ because of $3^x\ge2^x>0$ and $\ln(3)>\ln(2)>0$ , hence $f(x)$ is strictly increasing for $x\ge 0$
Therefore because of $1<p<n$ we have $1<3^p-2^p<3^n-2^n$
Since $n=1$ gives $1$ which is not prime, a prime can only occur if $n$ itself is prime.
$$|3^x − 2^y| = c$$
admits at most one solution in positive integers $x$ and $y$.
R. J. Stroeker and R. Tijdeman, Diophantine equations, in Computational methods in number theory, Part II, vol. 155 of Math. Centre Tracts, Math. Centrum, Amsterdam, 1982, pp. 321–369.
Also, see: https://webusers.imj-prg.fr/~michel.waldschmidt/articles/pdf/PerfectPowers.pdf
– vvg Oct 04 '20 at 13:21