OFFSET
1,1
COMMENTS
The unit digits of the numbers in the sequence are 3's or 9's.
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
89 is in the sequence since pair (89,97) is the first with difference 8 spanning a multiple of 10.
MATHEMATICA
a288024[n_] := Map[Last, Select[Map[{NextPrime[#, 1], NextPrime[#, -1]}&, Range[10, n, 10]], First[#]-Last[#]==8&]]
a288024[6000] (* data *)
Select[Partition[Prime[Range[800]], 2, 1], #[[2]]-#[[1]]==8&&IntegerDigits[#[[1]]][[-2]]!= IntegerDigits[ #[[2]]][[-2]]&][[;; , 1]] (* Harvey P. Dale, Jan 09 2024 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Hartmut F. W. Hoft, Jun 04 2017
STATUS
approved