working on prime factor problem