Project Euler problem 22 and Slidify