Solving Project Euler's problem in various programming language