Problems 26 and 27 Project Euler