\documentclass{article}1\title{Title of Document}2\author{Name of Author}34\usepackage{sagetex}56\begin{document}7\maketitle89heh -- This is a test.1011This year is $2016=\sage{factor(2016)}$.1213heh -- now I'm typing a lot1415$\sage{3+3}$1617heh -- Consider $x^3$.18192021heh -- now I'm typing a lot2223heh -- Blah.2425heh --2627heh -- Yes, I will! now I'm typing a lot282930Ok now I'm typing a lot3132\end{document}333435