Euler question #4