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!)
A171817 Primes p such that neither the previous nor the next prime is of the form 6k+1. 1
2, 3, 7, 13, 19, 43, 53, 97, 103, 109, 127, 139, 173, 181, 193, 229, 241, 257, 263, 283, 307, 313, 349, 397, 409, 421, 457, 463, 487, 499, 509, 563, 593, 643, 653, 691, 709, 769, 787, 811, 823, 829, 853, 859, 877, 883, 907, 919, 937, 947, 967, 977, 1021, 1051 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
2 is a term because 3 is not a prime of the form 6k+1,
3 is a term because 2 and 5 are not primes of the form 6k+1.
7 is a term because 5 and 11 are not primes of the form 6k+1.
PROG
(PARI) lista(nn) = forprime(p=2, nn, if (((precprime(p-1) % 6) != 1) && ((nextprime(p+1) % 6) != 1), print1(p, ", "))); \\ Michel Marcus, Mar 12 2022
CROSSREFS
Sequence in context: A038940 A019383 A249749 * A156300 A067834 A070754
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Dec 19 2009, Feb 11 2010
EXTENSIONS
Entries checked by R. J. Mathar, Apr 14 2010
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 24 02:46 EDT 2024. Contains 371917 sequences. (Running on oeis4.)