add primefactors implementation in python