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!)
A176132 Lesser of twin primes p0 such that 30*p0 -+ 1 and 30*p1 -+ 1 are twin primes, p1 = p0 + 2. 2
41, 69257, 98909, 185681, 413069, 626009, 741467, 1064951, 1096829, 1107791, 1149917, 1582811, 1819271, 1823051, 2202311, 2221379, 2748059, 3177257, 3606287, 3958457, 4275809, 4786697, 5129039, 5903897, 6533981, 6541079 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000 (terms 1..100 from Harvey P. Dale)
EXAMPLE
41 is a term since (41, 43) are twin primes, 30*41 - 1 = 1229 and 30*41 + 1=1231 are twin primes, and 30*43 - 1 = 1289 and 30*43 + 1 = 1291 are twin primes.
MATHEMATICA
lst={}; Do[p0=Prime[n]; p1=Prime[n+1]; If[p1-p0==2&&PrimeQ[p2=p0*30-1]&&PrimeQ[p3=p0*30+1]&&PrimeQ[p4=p1*30-1]&&PrimeQ[p5=p1*30+1], AppendTo[lst, p0]], {n, 5*9!}]; lst
ltpQ[{a_, b_}]:=b-a==2&&AllTrue[{30a+1, 30a-1, 30b+1, 30b-1}, PrimeQ]; Select[ Partition[ Prime[Range[450000]], 2, 1], ltpQ][[All, 1]] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Jul 27 2019 *)
CROSSREFS
Sequence in context: A206358 A222923 A262787 * A214163 A185539 A214184
KEYWORD
nonn
AUTHOR
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 18 22:18 EDT 2024. Contains 371782 sequences. (Running on oeis4.)