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!)
A137669 Prime numbers p such that p +- a and p +- b are prime numbers where a and b are distinct positive integers with a < b < p. 1

%I #11 Sep 16 2015 13:20:59

%S 11,13,17,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,

%T 107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,

%U 197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283

%N Prime numbers p such that p +- a and p +- b are prime numbers where a and b are distinct positive integers with a < b < p.

%H Vincenzo Librandi, <a href="/A137669/b137669.txt">Table of n, a(n) for n = 1..500</a>

%e 71+-12=primes and 71+-18=primes

%e 103+- 6=primes and 103+-24=primes

%e 107+- 6=primes and 107+-24=primes

%e 127+-24=primes and 127+-30=primes

%t l = {}; For[n = 1, n < 80, n++, c = 0; For[a = 1, a < Prime[n] - 2, a++, If[PrimeQ[Prime[n] - a] && PrimeQ[Prime[n] + a], For[b = a + 1, b < Prime[n], b++, If[PrimeQ[Prime[n] - b] && PrimeQ[Prime[n] + b], c = 1; Break; Break]]]]; If[c == 1, AppendTo[l, Prime[n]]]]; l (* _Stefan Steinerberger_, May 02 2008 *)

%K nonn,easy

%O 1,1

%A _Vladimir Joseph Stephan Orlovsky_, Apr 27 2008

%E Corrected and extended by _Stefan Steinerberger_, May 02 2008

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 25 03:15 EDT 2024. Contains 371964 sequences. (Running on oeis4.)