Cleaned up collatz, moved largest prime factor