Since $k[x,y]$ is a Unique Factorization Domain, the ideal $(x^m-y^n)$ is prime there if and only if $P=x^m-y^n$ is irreducible in $k[x,y]$.
I offer two proofs of irreducibility of $x^m-y^n$ when $\gcd(m,n)=1$, both showing that it’s irreducible as an element of $k(x)[y]$. The first is very advanced, the second is elementary, but my argument there is not as simple as it ought to be.
The first argument uses the theory of the Newton Polygon. Consider the discrete valuation $v_x$ on $k(x)$, which makes $v_x(x)=1$ and $v_x(f)=0$ if $x$ does not divide the polynomial $f\in k[x]$. The polygon of $P=x^m-y^n$ has one vertex for each monomial here, one at $(0,m)$ for $x^m$, the other at $(n,0)$ for $y^n$. There is only the one segment, between these two vertices, and it passes through no other integral points. But a factorization $P=P_1P_2$ that’s nontrivial, i.e. with both $y$-degrees positive, will give two segments, of lesser width than $n$ and with the one slope $-m/n$, and with both coordinates of the endpoints integral. Not possible, since the original segment passed through no integral points.
The other proof is elementary but much longer than it should be, and proceeds through several steps.
First, note that if $f(t)\in F[t]$ has degree $d$, where $F$ is a field, and if $\lambda\ne0$ in $F$, then $f(t)$ is irreducible if and only if $f(\lambda t)$ (and similarly $f(\lambda t)/\lambda^d\,$) is irreducible in $k[t]$.
Second, consider the polynomial $x^r-y^s\in k[x,y]$, where $r<s$. Say that $s=qr+d$ with $d<r$, by Euclidean division. Now consider the equivalences:
\begin{align}
x^r-y^s\text{ irred in }k[x,y]&\Longleftrightarrow
x^r-y^s\text{ irred in }k(y)[x]\\
&\Longleftrightarrow\left[(xy^q)^r-y^{rq+d}\right]\big/y^{qr}\text{ irred in }k(y)[x]\\
&\Longleftrightarrow x^r-y^d\text{ irred in }k(y)[x]\\
&\Longleftrightarrow x^r-y^d\text{ irred in }k[x,y]
\end{align}
You see the strategy now: perform Euclidean division repeatedly on the exponents, just as in the Euclidean algorithm for greatest common divisor, and finally get to a point where one of the exponents is $1$. But you know that $x^\ell-y$ and $y^\ell-x$ are irreducible in $k[x,y]$, which gives the result.