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!)
A098806 Smallest prime p such that 2n-p and 2n+p are both prime. 2

%I #4 Oct 01 2013 17:58:04

%S 5,7,11,11,13,17,17,23,23,29,31,37,37,43,41,43,47,53,53,59,67,67,71,

%T 71,79,89,83,89,101,97,101,101,109,107,131,113,127,131,127,131,137,

%U 137,179,149,157,157,193,191,167,179,179,181,193,193,191,193,197,211,227,211

%N Smallest prime p such that 2n-p and 2n+p are both prime.

%o (PARI) f(n) = for(p=1,n, for(x=1,n, y=x-p; z=x+p; if(isprime(y)&isprime(z)&isprime(x),print1(x",");break)))

%Y Cf. A098807.

%K easy,nonn

%O 2,1

%A _Cino Hilliard_, Oct 06 2004

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 May 2 14:34 EDT 2024. Contains 372197 sequences. (Running on oeis4.)