i want some help about a program which displays all prime numbers
between two numbers entered by the user. plz someone help me..... i m a 1st semester programing student thats why i am finding much difficulties....

Recommended Answers

All 3 Replies

Check out this article. It has the pseudocode right in the first paragraph. Try to convert this into code and post back once you have some specific questions.
http://en.wikipedia.org/wiki/Sieve_of_Eratosthenes

You can also use the search function of this page to look up some codes that might interest you...try searching for "Prime Number", for example.

try this

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.