Write a program to print all the prime numbers with in the
given range

Answer Posted / vaibhav

need to check only odd no.s in the given range....this'll
dec. time complexity to some extent..

Is This Answer Correct ?    4 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is c method?

761


What's a good way to check for "close enough" floating-point equality?

868


what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above

907


Why use int main instead of void main?

871


What are comments and how do you insert it in a C program?

997


What is nested structure with example?

833


What is the difference between malloc() and calloc()?

1107


Without Computer networks, Computers will be half the use. Comment.

2067


Explain what is the purpose of "extern" keyword in a function declaration?

829


When the macros gets expanded?

1112


hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell

1968


any "C" function by default returns an a) int value b) float value c) char value d) a & b

879


What is union in c?

870


What is the difference between c &c++?

857


hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .

2177