OFFSET
1,1
COMMENTS
a(13) > 10^3.
LINKS
Carlos Rivera, Puzzle 905
PROG
(PARI) r=307; i=3; for(n=1, 12, f=0; forprime(p=i, r, for(a=2, p-1, if(f==1, break); b=0; while(f==0&&b<(a-1)*p, b++; if(gcd(a*p, b)==1, v=p; c=1; t=0; while(c==1, s=a*v-b; if(isprime(s)&&t<n, v=s; t++, c=0)); if(n==t, f=1; i=p; print1(p, ", ")))))));
CROSSREFS
KEYWORD
nonn,hard,more
AUTHOR
Arkadiusz Wesolowski, May 27 2018
STATUS
approved