Remove square function
Print the last prime factor
Split function