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 is not a pointer null after calling free?

600


What is the use of void pointer and null pointer in c language?

633


what is a function method?give example?

1918


Explain how can I remove the trailing spaces from a string?

632


What are multidimensional arrays?

658






How do you override a defined macro?

704


Explain how do you generate random numbers in c?

628


Is c still relevant?

646


Where are some collections of useful code fragments and examples?

721


What is advantage of pointer in c?

700


Write a program to reverse a given number in c language?

623


What are the advantage of c language?

556


What is the purpose of clrscr () printf () and getch ()?

605


how to write optimum code to divide a 50 digit number with a 25 digit number??

2757


Tell us two differences between new () and malloc ()?

617