login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A193063
Primes p for which there is no prime q == 1 (mod 3) that is smaller than p and is a quadratic residue modulo p.
1
2, 3, 5, 7, 11, 13
OFFSET
1,1
COMMENTS
Gica proved that if p is a prime different from 2, 3, 5, 7, 11, 13, then a prime q < p exists which is a quadratic residue modulo p and q == 1 (mod 3). His paper has not yet been published, but see A192578 for a reference, link, and examples of a similar result.
MATHEMATICA
piMax = 100; quadQ[q_, p_] := Length[ Select[ Table[x^2, {x, 1, Floor[p/2]}], Mod[#, p] == q & , 1]] == 1; noPrimeQ[p_] := Select[ Table[ Prime[n], {n, 1, PrimePi[p]}], Mod[#, 3] == 1 && quadQ[#, p] &] === {}; Select[ Table[ Prime[n], {n, 1, piMax}], noPrimeQ] (* Jean-François Alcover, Oct 03 2011 *)
CROSSREFS
KEYWORD
nonn,fini,full
AUTHOR
Jonathan Sondow, Jul 15 2011
STATUS
approved