I am looking for a list of primes $\le N$ for which 2 is a primitive root, with $N$ as large as available. I know of a table of smallest primitive roots for all primes below 1000, from which such a list can be extracted when $N=1000$, but I am interested in much larger $N$.
1 Answer
$\begingroup$
$\endgroup$
The sequence of primes for which 2 is a primitive root is OEIS A001122. It contains a list of the first 10,000 such primes, which goes up to $N=310091$. I'm not sure if that is sufficient for you, but it's at least a first step.
[p for p in prime_range(10^7) if primitive_root(p)==2]
. $\endgroup$