Solutions for project euler questions