Largest prime factor (from projecteuler.net #q=3)