Updated

Goes to the 10001th prime by default and  only prints the final answer.