Euler 3: largest prime factor