Prime numbers

Background/Algorithm: The Sieve of Eratosthenes algorithm generates prime number using the follow algorithm.
1. Create a list the number from 1..n
2. Let p = 2 (the first prime number)
3. start from p count up in increments of p (2p,3p, 4p……) and mark it in the list
4. find the next number that is not marked set it to p; repeat step 3

Can someone help with this I am really new to c++..
Post what you have and you will get help. Maybe ;)
closed account (z05DSL3A)
See search at the top of the page? Type 'Eratosthenes' in and click go...
There are easier methods to finding primes than that. Is this an assignment?
Yea and I really don't know how to do it ...
Topic archived. No new replies allowed.