prime numbers

can we find primes numbers between 0 and 10^7 using sieve of eratosthenes or should i use any other method??
I may be wrong, but I've always considered the sieve method to be faster than the alternatives when a complete list of primes is required like this.
Topic archived. No new replies allowed.