Added prime factor function to Log