To clear up confusion, I'm talking about finding the first $n$ primes in the sequence, $p_1, p_2...p_n...\infty$ without being given this list prior. This is by no means a rigorous attempt at a proof, just a shower thought:
It is widely known that the sieve of Eratosthenes has $O\big(nlog(log(n))\big)$ time complexity, where $n$ - in this case - is the largest integer to check for primality.
It is also known that the upper bound for the $n$th prime, $p_n$ satisfies: $$n(\ln n+\ln \ln n)>p_n$$ See Bounds for $n$-th prime and let $f(n)=n(\ln n+\ln \ln n)$.
From (1), we conclude that finding the first $n$ primes using that seive has the time complexity, $O(p_nlog(log(p_n)))$.
From (3) and (2), we conclude that finding the first $n$ primes using the seive has an upper bound for it's time complexity, $O(f(n)log(log(f(n))))$
Expanding out the complexity in (4), ignoring the different bases of log, and then simplifying gives us: $$(n(\log n+\log \log n))log(log(n(\log n+\log \log n))) = n log ( n log ( n ) ) log ( log ( n log ( n log ( n ) ) ) )$$
Which, although weird as heck, still renders the complexity in (4) a polynomial time complexity.
So then - does that mean the process of finding the first $n$ primes using the seive of Eratosthenes is in the complexity class $P$ since its upper bound time complexity appears (to me, a hobbyist) to be polynomial?
I've tried my best to explain but please ask questions if I haven't been clear enough.
Edit: The upper bound for the nth prime is only applicable for primes greater than or equal to 6... but this doesn't change my argument much.
-- Thanks!