954,496 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Help needed

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....

aaash
Newbie Poster
1 post since Dec 2009
Reputation Points: 10
Solved Threads: 0
 

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

jonsca
Quantitative Phrenologist
Team Colleague
5,621 posts since Sep 2009
Reputation Points: 1,165
Solved Threads: 581
 

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.

PDB1982
Posting Whiz in Training
206 posts since Oct 2009
Reputation Points: 10
Solved Threads: 1
 
zobadof
Junior Poster
141 posts since Dec 2009
Reputation Points: 3
Solved Threads: 7
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You