OFFSET
2,1
COMMENTS
All the terms > 2 end with 3, because these primes p are == 3 (mod 5) and cannot end with 8. - Bernard Schott, Mar 25 2022
LINKS
Robert Israel, Table of n, a(n) for n = 2..349
EXAMPLE
a(3) = 23 because 23 is the least prime p with p == 2 (mod 3) and p == 3 (mod 5).
MAPLE
R:= NULL:
m:= 1: P:= [2]: p:= 2: t:= 1:
for n from 2 to 20 do
q:= p; p:= nextprime(p);
P:= [op(P), p];
t:= chrem([t, q], [m, p]);
m:= m*p;
for x from t by m do if isprime(x) then break fi od:
R:= R, x;
od:
R;
CROSSREFS
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Mar 12 2022
STATUS
approved