Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

write the program for prime numbers?

Answer Posted / vasanth

This program is to check a given number is prime or not
(or) list the prime numbers in a given no.

For example, the user enter the no is 50. the program is
list the prime numbers in 50.

Is This Answer Correct ?    402 Yes 262 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why does notstrcat(string, "!");Work?

1153


What are the ways to a null pointer can use in c programming language?

1137


Find MAXIMUM of three distinct integers using a single C statement

1071


Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].

1097


Write a program to know whether the input number is an armstrong number.

1128


What are the general description for loop statement and available loop types in c?

1129


Where static variables are stored in memory in c?

1004


What is actual argument?

1066


What is struct node in c?

1077


What is the advantage of a random access file?

1204


Write a program to find factorial of a number using recursive function.

1125


Why is this loop always executing once?

1061


What do you mean by keywords in c?

1153


Can we increase size of array in c?

971


Why should I use standard library functions instead of writing my own?

1274