answersLogoWhite

0


Best Answer

Yes, do write, or if you're too lazy to your homework, use Google.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a c program to find given number is prime or not?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you write a program to find whether the given number is prime or not and show output?

#include<stdio.h> #include<conio.h> void main() { int n,a=2; clrscr(); printf("\n enter n"); scanf("%d",&n); if(i<=a-1) { if(a%i==0) { printf("\n the given number is not a prime number"); break; } i++; if(a==i) { printf("\n the given number is a prime number"); } getch(); output: enter the value of n:2 the given number is prime number


What is the largest prime no that is stored in 8 bit pattern?

Write your own prime number program and find out.


With a given big integer number which is the product of two prime numbers how do you find them?

First write a program to generate the prime number. After one prime number was generated, divide the big int number by the prime number. If the remainder is zero then quotient is the second prime number ( also it is important to check whether the quotient is prime number or not because sometimes you will get wrong answer). Repeat the process until you get the result.


How can I write a program to display prime numbers from 1 to 100?

Write a function that implements an algorithm that checks to see if a particular integer is prime (returning a boolean). Write a program that uses that function on each number from 1 to 100, and if true, displays that number.


Determine if the given number is prime if the number is composite write it has a prime factor 295?

295 is composite - 5 x 59.


Program for print prime all number from 1 to 100 in foxpro?

Prime numbers are numbers that are only divisible by themselves and the number 1. You can write a program to print all prime numbers from 1 to 100 in FoxPro.


Write a java program to display the number is prime or not?

Simply use a for loop (i) that runs from 2 to N-1. Checking if N % i 0 then its a prime number.


How do you write a number as a product of its prime factors?

write the number 14as a product of prime factor?


Is there an easier way to write the definition for a prime factorization?

I define prime factorization as "expressing a given number as the product of its prime factors." I don't know how to make it easier than that.


Is 3185 a prime number?

Write 3185 as a prime number


Write a c program to generate all prime numbers in the given range?

look man that would take alot >>> Ill give you the way =============================================================================== this answer i write it now on net ! i read about that befor in it uni where i study i will chick out the answer and re write it best wishes 2024


How to write a java program that determines the number of prime numbers less than N which is given by the user?

where to start? do you have an algorithm and just want to implement it in java? depends on how big N is, as that will determine which method is most efficient