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

What is optimization in c?

559


What are different storage class specifiers in c?

606


What is meant by high-order and low-order bytes?

640


Can a variable be both const and volatile?

661


The file stdio.h, what does it contain?

653






Difference between Function to pointer and pointer to function

621


Which is better pointer or array?

587


Explain how can I manipulate strings of multibyte characters?

769


What are the valid places to have keyword “break”?

642


a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list

618


Mention four important string handling functions in c languages .

615


please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code

1698


Explain how can a program be made to print the name of a source file where an error occurs?

670


what is the basis for selection of arrays or pointers as data structure in a program

3780


What is a ternary operator in c?

642