A086101 Numbers j such that the concatenation of the last digit of p(j) and the first digit of prime(j+1) is a prime.
1, 4, 5, 6, 7, 11, 20, 21, 25, 26, 27, 28, 30, 31, 32, 33, 36, 37, 38, 39, 40, 42, 43, 44, 45, 63, 64, 66, 67, 68, 69, 73, 125, 126, 127, 128, 130, 131, 132, 133, 135, 136, 137, 154, 155, 156, 159, 160, 161, 163, 164, 165, 167, 168, 170, 172, 173, 174, 177, 178, 179
Offset: 1
Examples
20 is a term because prime(20)=71, prime(21)=73, and 17 is a prime.
Links
- Harvey P. Dale, Table of n, a(n) for n = 1..1000
Programs
-
Mathematica
cldfdQ[{a_,b_}]:=PrimeQ[FromDigits[Join[{Mod[a,10]},{First[IntegerDigits[b]]}]]]; Position[ If[cldfdQ[#],1,0]&/@Partition[Prime[Range[200]],2,1],1]//Flatten (* Harvey P. Dale, Apr 26 2022 *)
Extensions
Comment from Charles R Greathouse IV, Apr 27 2010
Comments