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”).

Numbers n such that both n plus its first digit and n minus its first digit are primes.
0

%I #6 Mar 31 2012 13:46:52

%S 12,18,21,34,65,67,81,92,98,102,108,138,150,180,192,198,225,231,279,

%T 310,314,334,350,356,370,376,386,405,435,453,483,495,504,552,582,607,

%U 613,625,637,647,653,667,726,750,780,819,831,920,928,938,962,1020,1032,1050

%N Numbers n such that both n plus its first digit and n minus its first digit are primes.

%C Average of pairs: 66,3255,3465,6696,6786,6954,9429,31725,34845,60096,...

%t Select[ Range[1060], PrimeQ[ # + IntegerDigits[ # ][[1]]] && PrimeQ[ # - IntegerDigits[ # ][[1]]] &]

%Y Intersection of A107835 & A107836.

%K base,nonn

%O 1,1

%A _Eric Angelini_ and _Robert G. Wilson v_, Jun 14 2005