adding prime factors