Note that u=1, v=2, w=3 gives d3−11d−12=0 which has no integer solutions. Thus uvw>8 and uv+vw+wu≥3(uvw)2/3>12. This shows that d3>12d+16 and we infer that d≥5.
If d is a prime, d has to be an odd prime, say d=p. Then p3=p(uv+vw+wu)+2uvw, so that p divides uvw. Assume p∣u, and write u=pu1. If p divides vw, it must divide either v or w. But then
p(uv+vw+wu)>pu(v+w)>p2(p+1)>p3.
Thus p cannot divide vw. The relation now reduces to
p2=pu1(v+w)+vw(1+2u1).
It follows that p divides 1+2u1. Thus 1+2u1≥p or u1≥(p−1)/2. Since v, w are distinct, we have v+w≥3. Thus
p(uv+vw+wu)>pu(v+w)≥3p2u1≥23p2(p−1)>p3,
if p≥3. We conclude that d cannot be an odd prime.
Suppose d=6. Substituting in the given relation, we see that 3∣uvw. Assume 3∣u, so that u=3u1. We obtain
36=3u1(v+w)+vw(1+u1).
Thus 3∣vw(1+u1). Observe that 3u1(v+w)<36 and v+w≥3. Hence u1<4. Thus either 3∣vw or u1=2. But u1=2 shows that 12=2(v+w)+vw forcing v=w=2. Since v=w, the other possibility is 3∣vw. Taking 3∣v, we have v=3v1 and
12=3u1v1+w(u1+v1)+u1v1w.
Thus u1v1(3+w)<12. This forces u1v1<3 giving (u1,v1)=(1,2) or (2,1). But then u1+v1=3 and u1v1=2, giving 12=6+5w. This is impossible for an integer w.
We conclude that d≥8. For d=8, we may take (u,v,w)=(2,4,7).