Added test case for prime factors.