calculate the prime factors of a positive integer
