Solutions for project euler