Prime Factors - Prolog | SlaveCode