Solutions for the project euler problems