Problem solving from www.projecteuler.net with computer code