\documentclass{scrartcl}
% arara: pdflatex
% arara: sage: { files: [mwe.sagetex.sage]}
% arara: pdflatex
\usepackage{sagetex}
\begin{document}
$$\sage{2^5}$$
\end{document}

