printing prime factors of a number