Finished project euler 4