The OEIS is supported by the many generous donors to the OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A108259 Consider primes p and q such that p = 3^k + 2 and q = 3^(k+1) + 2 for some k; sequence gives values of p. 0
 3, 5, 11, 29, 4782971 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,1 LINKS EXAMPLE 3^1 + 2 = 5, 3^2 + 2 = 11. MATHEMATICA 3^#+2&/@Select[Range[0, 20], AllTrue[{3^#+2, 3^(#+1)+2}, PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Nov 01 2015 *) PROG (PARI) g(m, n, b) = { for(x=0, n, y=m+b^x+b%2; z=m+b^(x+1)+b%2; if(isprime(y)&isprime(z), print1(p", ") ) ) } CROSSREFS Sequence in context: A146243 A262936 A214089 * A093933 A165572 A246901 Adjacent sequences:  A108256 A108257 A108258 * A108260 A108261 A108262 KEYWORD nonn AUTHOR Cino Hilliard, Jun 29 2005 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.

Last modified August 9 17:04 EDT 2022. Contains 356026 sequences. (Running on oeis4.)