Write a program to Print all unique prime factors
Take a whole number n as an integer input and then print all the unique prime factors of n such that each prime factor is printed in a separate line.
Input Format
n will be given as an integer input
Constraints
1<=n<=2^31-1
Output Format
Print the prime factors as an integer value where each prime number should be printed in a separate line.
Sample Input 0
45
Sample Output 0
3
5
Sample Input 1
100
Sample Output 1
2
5
Sample Input 2
240
Sample Output 2
2
3
5
Sample Input 3
350
Sample Output 3
2
5
7
Sample Input 4
400
Sample Output 4
2
5
Sample Input 5
390
Sample Output 5
2
3
5
13
Also Read: Print Inverted Right Angled Triangle reversed whole numbers