\[ \int \frac {e^{-\frac {e^{16}}{x}-\frac {6 e^{-\frac {e^{16}}{x}}}{x}} \left (-24 e^{16} x+24 x^2+2 e^{8+\frac {e^{16}}{x}+\frac {6 e^{-\frac {e^{16}}{x}}}{x}+2 x} x^2+8 e^{\frac {e^{16}}{x}} x^3+e^{\frac {3 e^{-\frac {e^{16}}{x}}}{x}} \left (e^{4+x} \left (-12 e^{16}+12 x\right )+e^{4+\frac {e^{16}}{x}+x} \left (4 x^2+4 x^3\right )\right )\right )}{x^2} \, dx \]
Optimal antiderivative \[ \left ({\mathrm e}^{4+x}+2 x \,{\mathrm e}^{-\frac {3 \,{\mathrm e}^{-\frac {{\mathrm e}^{16}}{x}}}{x}}\right )^{2} \]
command
integrate((2*x**2*exp(4+x)**2*exp(exp(16)/x)*exp(3/x/exp(exp(16)/x))**2+((4*x**3+4*x**2)*exp(4+x)*exp(exp(16)/x)+(-12*exp(16)+12*x)*exp(4+x))*exp(3/x/exp(exp(16)/x))+8*x**3*exp(exp(16)/x)-24*x*exp(16)+24*x**2)/x**2/exp(exp(16)/x)/exp(3/x/exp(exp(16)/x))**2,x)
Sympy 1.10.1 under Python 3.10.4 output
\[ 4 x^{2} e^{- \frac {6 e^{- \frac {e^{16}}{x}}}{x}} + 4 x e^{- \frac {3 e^{- \frac {e^{16}}{x}}}{x}} e^{x + 4} + e^{2 x + 8} \]
Sympy 1.8 under Python 3.8.8 output
\[ \text {Timed out} \]________________________________________________________________________________________