Euler 77 attempt