solved euler42 primarily based off of my solution for 22