I am writing this method which should return the largest prime factor of a given number. It was working fine till 45 was entered and the output was 15, even though the output sh