OFFSET
1,1
COMMENTS
That is, the first n primes are quadratic non-residues mod k. The first 13 terms are prime. Sequence A191089 is similar, but forces k to be prime.
MATHEMATICA
Table[k = 2; While[Length[Select[Prime[Range[n]], JacobiSymbol[#, k] == -1 &]] < n, k++]; k, {n, 15}]
PROG
(PARI) q=2; for(k=3, 1e9, forprime(p=2, q, if(kronecker(p, k)>=0, next(2))); print1(k", "); q=nextprime(q+1); k--) \\ Charles R Greathouse IV, Oct 10 2011
CROSSREFS
KEYWORD
nonn
AUTHOR
T. D. Noe, May 25 2011
EXTENSIONS
a(16)-a(28) from Charles R Greathouse IV, Oct 10 2011
STATUS
approved