OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
MATHEMATICA
Select[Range@ 307, Function[k, Or[k == Mod[NextPrime@ Prime@ #, 10], k == Mod[NextPrime[Prime@ #, -1], 10]]]@ Mod[Prime@ #, 10] &] (* Michael De Vlieger, Mar 15 2016 *)
PrimePi/@Select[Partition[Prime[Range[350]], 3, 1], Mod[#[[2]], 10]==Mod[#[[1]], 10]||Mod[#[[2]], 10]==Mod[#[[3]], 10]&][[;; , 2]] (* Harvey P. Dale, Mar 07 2024 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Francois Alcover, Mar 15 2016
EXTENSIONS
More terms from Michael De Vlieger, Mar 15 2016
STATUS
approved