working on prime factors