Program to determine the number is prime or not, C/C++ Programming

Write a function to determine whether a number is prime: it will return true if the input is prime and false otherwise. Use it to see whether -7 is prime.

 

Posted Date: 3/29/2013 2:07:00 AM | Location : United States







Related Discussions:- Program to determine the number is prime or not, Assignment Help, Ask Question on Program to determine the number is prime or not, Get Answer, Expert's Help, Program to determine the number is prime or not Discussions

Write discussion on Program to determine the number is prime or not
Your posts are moderated
Related Questions
Consider a group of n robots, numbered R2D1 through R2Dn, and m tasks, numbered 1 through m. Tasks can be different and robots are specialized, hence a given robot can only perform

how many types of loops are there and whay are they and what are its uses

Operation on String - C ++ Program: Write a program to define operations on string in c++. class String {    char *char_ptr;   // pointer to string contents    int le

I need to include files so you can understand easier.

What is the difference between an external iterator and an internal iterator? Ans) An internal iterator is executed with member functions of the class that has items to step th

Define the Int Data Type of C Language? The int is used to define integer numbers. The Integers are whole numbers with a range of values supported by a particular machine and t

C Program for RADIUS OF CIRCLE   #define PI 3.14159 main() {           float r,a;           clrscr();           printf("ENTER THE RADIUS OF A CIRCLE: ");

program for factorial


Using your mountain project source code as a starting point, you are to write a code that randomly chooses one of the triangles on the surface of your mountain, this will be the en