Solution (source code)

= Solution

Choose $+z$ along the current in the inner conductor. Cylindrical symmetry and <Ampère's law> give $2\pi r B_\phi=\mu_0I$ for $a<r<b$, so
$$
\boxed{\mathbf B=\frac{\mu_0I}{2\pi r}\mathbf e_\phi,\qquad I=V/R.}
$$
The opposite current on the outer shell makes the net enclosed current zero outside both conductors; the long-cylinder approximation neglects end fields.