OFFSET
1,1
EXAMPLE
a(1) = 337, because 337 and 337 + 10 = 347 are two consecutive primes with the same last digit 9 and no smaller p has this property.
PROG
(PARI) a(n) = my(p=7); while (!isprime(p) || ((nextprime(p+1)-p) != 10*n), p+=10); p; \\ Michel Marcus, Feb 25 2025
CROSSREFS
KEYWORD
nonn,base,new
AUTHOR
Jean-Marc Rebert, Feb 25 2025
STATUS
approved