Algorithms to solve the problems of ProjectEuler website