Julia solution to Euler prob 1