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!)
A119835 Primes p such that 2*p#-1 and 2*p#+1 are twin primes. 2
2, 3, 5, 7, 113, 857 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

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

EXAMPLE

2*2-1=3 2*2+1=5, 3 and 5 twin primes so a(1)=2;

2*2*3-1=11 2*2*3+1=13, 11 and 13 twin primes so a(2)=3;

2*2*3*5-1=59 2*2*3*5+1=61, 59 and 61 twin primes so a(3)=5.

MAPLE

isA001359 := proc(n) RETURN(isprime(n) and isprime(n+2)); end: primo := 2 : print(primo); for n from 2 to 20000 do p := ithprime(n); primo := primo*p; if isA001359(2*primo-1) then print(p); fi; od : # R. J. Mathar, Aug 09 2006

PROG

(Magma) p:p in PrimesUpTo(4000)|IsPrime(2*&*PrimesUpTo(p)-1) and IsPrime(2*&*PrimesUpTo(p)+1)]; // Marius A. Burtea, Mar 25 2019

CROSSREFS

Cf. A119833, A119834.

Sequence in context: A006341 A086107 A046713 * A076609 A117059 A117058

Adjacent sequences: A119832 A119833 A119834 * A119836 A119837 A119838

KEYWORD

more,nonn

AUTHOR

Pierre CAMI, May 25 2006

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 March 31 21:40 EDT 2023. Contains 361673 sequences. (Running on oeis4.)