answersLogoWhite

0

#include"stdio.h"

#include"conio.h"

main(){

int x,i=2;

clrscr();

printf("\nEnter a no");

scanf("%d",&x);

while(i<=x-1){

if(x%i==0)

printf("\nNOT PRIME");

break;

i++}

if(i==x)

printf("\nNo is prime");

getch();

}

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is finding the factors of a number that are all prime?

That's finding the prime factorization.


What is the difference between finding the factors of a number and finding the prime factors of a number?

No difference. Once you've found the factors of a number, the prime numbers on that list are the prime factors.


How is prime factorization different from finding factors of a number?

All numbers have factors. Some factors are prime numbers, some are composite numbers, one is neither. When finding the factors of a number, you find all the factors. The prime factorization is a multiplication string of just prime factors that will total the given number.


What is the formula for finding a prime number?

Any number that has only two factors is a prime number.


What is the definition prime factorization?

Prime Factorization is finding which prime numbers multiply together to make the original number.


What are the prime factorization for composite numbers 1-100?

finding the prime factors of a composite number


Why is finding prime factorization of a number useful?

It helps to reduce fractions.


How do you write a factor tree for a prime number?

The purpose of a factor tree is to notate the process of finding the prime factorization. If a number is already prime, a factor tree is not necessary.


What is the definition and purpose of prime factorization?

Prime factorization is the result of expressing a number as the product of its prime factors. It will assist you in finding the GCF and LCM of any given number set.


What is a step diagram for prime factors?

it is a way of finding out all of the prime numbers that you have to multiply to equal the desired number.


Is there an easy formula for finding a prime number?

Yes, you can easily divide the number up to that number. If it gets divided by someone other than itself and 1, it is not prime.


How much is the prize for finding out the next prime number?

$3000 for the next prime, $50,000 for the next Mersenne prime, $150,000 for a 100 million digit prime.