login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A270311 Indices of primes ending with the same decimal digit as the previous or next prime. 2
34, 35, 42, 43, 53, 54, 61, 62, 68, 69, 80, 81, 82, 83, 101, 102, 106, 107, 115, 116, 125, 126, 127, 128, 138, 139, 141, 142, 145, 146, 154, 155, 157, 158, 172, 173, 175, 176, 177, 178, 191, 192, 193, 194, 204, 205, 222, 223, 233, 234, 258, 259, 260, 266, 267, 269, 270, 279, 280, 289, 290, 306, 307 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
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
Cf. A270310.
Sequence in context: A271984 A254756 A203462 * A257315 A045561 A294282
KEYWORD
nonn,base
AUTHOR
Francois Alcover, Mar 15 2016
EXTENSIONS
More terms from Michael De Vlieger, Mar 15 2016
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 17 20:13 EDT 2024. Contains 371767 sequences. (Running on oeis4.)