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

A048402
Primes with consecutive digits that differ exactly by 5.
7
2, 3, 5, 7, 61, 83, 383, 727, 72727, 94949, 1616161, 383838383, 727272727, 383838383838383, 38383838383838383, 72727272727272727, 94949494949494949, 383838383838383838383
OFFSET
1,1
LINKS
MATHEMATICA
Module[{nn=50, w1, w2}, w1=Flatten[Table[Select[FromDigits/@Table[ PadRight[ {}, n, {a, a+5}], {n, 2, nn}], PrimeQ], {a, 4}]]; w2=Flatten[Table[Select[ FromDigits/@ Table[PadRight[{}, n, {a+5, a}], {n, 2, nn}], PrimeQ], {a, 4}]]; Join[ {2, 3, 5, 7}, w1, w2]//Union] (* Harvey P. Dale, Jan 09 2021 *)
KEYWORD
nonn,base
AUTHOR
Patrick De Geest, Apr 15 1999
STATUS
approved