Very slow Project Euler Q3 (largest prime factor of a large number)
Similar questions have been asked before.  You are using the "test the largest candidate factors first" strategy, which does not scale well at all.  You should test the smallest candidate factors first.