adding prime factoring