login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A067208
n is prime and remains prime when its leading digit is increased by one.
1
2, 13, 19, 31, 37, 43, 61, 73, 79, 97, 127, 139, 151, 157, 163, 181, 193, 211, 283, 331, 349, 367, 379, 409, 421, 457, 463, 487, 499, 541, 547, 577, 601, 619, 643, 661, 673, 709, 727, 739, 757, 787, 811, 829, 853, 877, 883, 919, 991, 997, 1039, 1063, 1069
OFFSET
1,1
LINKS
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
Sequence in context: A168672 A297854 A298089 * A142348 A309663 A347259
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