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!)
A256300 Least prime p such that p+6^k is prime for all k=0,...,n. 1
2, 5, 5, 7, 7, 131, 1087, 1087, 1087, 3599111 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
COMMENTS
The function f(k;p) = p+6^k could be termed an example of a non-polynomial prime generating function.
Since 6^n (mod 11) cycles through 6,3,7,9,10,5,8,4,2,1,... there is no a(10). - John Cerkan, Jul 01 2017
LINKS
C. Rivera, Puzzle 782. Prime-Generating non-polynomials, primepuzzles.net, April 4, 2015.
PROG
(PARI) a(n)=forprime(p=1, , for(i=1, n, ispseudoprime(p+6^i)||next(2)); return(p))
CROSSREFS
Sequence in context: A121359 A082087 A263317 * A342852 A023850 A175649
KEYWORD
nonn,fini,full
AUTHOR
M. F. Hasler, Apr 05 2015
EXTENSIONS
Keywords fini,full added by John Cerkan, Jul 01 2017
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 25 10:47 EDT 2024. Contains 371967 sequences. (Running on oeis4.)