adding project euler solution 42