#include
#include
void main()
{
int n,i;
clrscr();
printf("Enter a Number:");
scanf("%d",&n);
printf("\n\nPrime Factors of %d is: ",n);
for(i=2;i<=n;i++)
{
if(n%i==0)
{
printf("%d,",i);
n=n/i;
i--;
if(n==1)
break;
}
}
getche();
}
this program will find the prime factors of a given number
any assistance
mail at :- devilllcreature@Yahoo.com
thank you
Yes.
11 is a prime number therefore the only number that factors 11 is 1 and itself
32 x 72 = 441
2 x 32 = 18
If you are using Linux/Unix, type 'factor 3601' in a terminal. The factors of 3601 are 13 and 277; therefore, it is not a prime number.
37 is a prime number because it has only two factors which are itself and one
an arithmetic tree an is formula using prime and composite number to express its factors.
103 is a prime number. The only two factors of a prime number are 1 and itself. The only factor pair of 103 is 1 x 103. There is only one factor pair of a prime number. The proper factors of 103 are only 1 or, if the definition you are using excludes 1, there are none. The only prime factor of 103 is 103. There is only one prime factor of a prime number - itself. The distinct prime factor (listing each prime factor only once) of 103 is also 103.
prime factors
The prime factors of 26 are 2 and 13.
the prime factors of 725 using exponents are 5^2 x 29
To find the prime factors of any number then divide the number by prime numbers of increasing value. When a prime number wholly divides the original number repeat the process with the same prime number but each time with the new quotient until complete division does not occur. Repeat with a prime number of higher value until the final quotient is 1. Using this process gives the prime factors of 374 as 2, 11 and 17.