OFFSET
1,1
COMMENTS
Dickson's conjecture implies that a(n) exists for all n.
LINKS
The Prime Glossary, Dickson's conjecture
MATHEMATICA
For[i=n=1, True, Null, For[j=0, j<n&&Mod[Prime[i+j], 12]==1, j++, Null]; If[j==n, Print[Prime[i]]; n++, i++]
Module[{p12=Mod[Prime[Range[2*10^7]], 12]}, Table[Prime[ SequencePosition[ p12, PadRight[ {}, n, 1], 1][[All, 1]]], {n, 11}]]//Flatten (* Requires Mathematica version 10 or later *) (* The program generates the first 11 terms of the sequence *) (* Harvey P. Dale, Dec 24 2020 *)
PROG
(PARI) {i=n=1; while(1, j=0; while(j<n&&prime(i+j)%12==1, j++); if(j==n, print(prime(i)); n++, i++))}
CROSSREFS
KEYWORD
nice,nonn
AUTHOR
Ferenc Adorjan (fadorjan(AT)freemail.hu), Feb 22 2002
EXTENSIONS
Edited by Dean Hickerson, Mar 06 2002
a(12)-a(15) from Giovanni Resta, Feb 18 2006
a(16)-a(18) from Giovanni Resta, Aug 04 2013
STATUS
approved