This is project Euler 1