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

 

Logo

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 59th year, we have over 358,000 sequences, and we’ve crossed 10,300 citations (which often say “discovered thanks to the OEIS”).

Other ways to Give
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A257771 Numbers n such that n*k - 1 and n*k + 1 are not both prime for any k < n. 1
1, 2, 5, 8, 11, 13, 31, 37, 53, 61, 73, 79, 97, 122, 127 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

Numbers n such that A071558(n) > n.

LINKS

Table of n, a(n) for n=1..15.

PROG

(PARI) is(n)=for(k=1, n-1, if(isprime(n*k-1)&&isprime(n*k+1), return(0))); 1 \\ Charles R Greathouse IV, May 08 2015

(PARI) is(n)=my(s=6/gcd(n, 6)); forstep(k=s, n-1, s, if(isprime(n*k-1)&&isprime(n*k+1), return(0))); 1 \\ Charles R Greathouse IV, May 08 2015

CROSSREFS

Cf. A071558, A220141.

Sequence in context: A190057 A190305 A294391 * A276881 A282457 A329848

Adjacent sequences: A257768 A257769 A257770 * A257772 A257773 A257774

KEYWORD

nonn,fini

AUTHOR

Juri-Stepan Gerasimov, May 07 2015

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 December 1 18:36 EST 2022. Contains 358475 sequences. (Running on oeis4.)