decompose the prime factors