C program to find unique prime factors

C program to find unique prime factors

Output:

Enter a number to find its prime factors:
2 7 41

Implementation: