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!)
A097493 Primes which are two greater than A097492 terms. 4
7, 37, 457, 8647, 51315414607 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
The next term (17866..79237) has 186 digits.
LINKS
EXAMPLE
a(4) = 8647 = (Product_{k=1..4} A006512(k)) + 2 = 5*7*13*19 + 2 = A097492(4) + 2. - Hartmut F. W. Hoft, Apr 27 2021
MATHEMATICA
step[{list_, q_}] := Module[{p=NextPrime[q]}, {Join[list, If[PrimeQ[p+2], {{p, p+2}}, {}]], p}]
largerTwin[n_] := Last[Transpose[First[NestWhile[step, {{{3, 5}}, 3}, Length[First[step[#]]]<=n&]]]]
a097492[n_] := Rest[FoldList[Times, 1, largerTwin[n]]]
a097493[n_] := Select[Map[#+2&, a097492[n]], PrimeQ]
a097493[68] (* Hartmut F. W. Hoft, Apr 27 2021 *)
PROG
(PARI) fu(n) = p=1; for(x=1, n, p*=twinu(x); if(isprime(p+2), print1(p+2", "))) \The n-th upper twin prime twinu(n) = { local(c, x); c=0; x=1; while(c<n, if(isprime(prime(x)+2), c++); x++; ); return(prime(x)) }
CROSSREFS
Sequence in context: A330388 A371710 A276231 * A341377 A082687 A117731
KEYWORD
nonn
AUTHOR
Cino Hilliard, Aug 24 2004
EXTENSIONS
Edited by Don Reble, Apr 16 2007
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 19 16:21 EDT 2024. Contains 371794 sequences. (Running on oeis4.)