OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
Increasing the leading digit of 97 (prime) by one yields 107 (prime). Hence 97 is a term of the sequence.
MATHEMATICA
f[n_] := Block[{a = IntegerDigits[n] }, a[[1]] = a[[1]] + 1; Return[ FromDigits[a]]]; Select[ Range[1100], PrimeQ[ # ] && PrimeQ[ f[ # ]] & ]
Select[Prime[Range[200]], PrimeQ[FromDigits[Join[{IntegerDigits[#][[1]]+1}, Rest[IntegerDigits[#]]]]]&] (* or *) Select[Prime[ Range[ 200]], PrimeQ[#+10^(IntegerLength[#]-1)]&] (* Harvey P. Dale, Dec 27 2024 *)
CROSSREFS
KEYWORD
base,easy,nonn,changed
AUTHOR
Joseph L. Pe, Feb 19 2002
EXTENSIONS
Edited and extended by Robert G. Wilson v, Feb 21 2002
STATUS
approved