Added prime factors calculus