Adds prime factorization function to common