The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A097444 Second occurrence where n# + p is prime for primes p = 3,5,... 1
7, 13, 41, 227, 2339, 30059, 510551, 9699727, 223092917, 6469693319, 200560490213, 7420738134911, 304250263527317, 13082761331670097, 614889782588491519, 32589158477190044803, 1922760350154212639159 (list; graph; refs; listen; history; text; internal format)
OFFSET
2,1
COMMENTS
Care has to be taken to start with a large enough n to be sure terms are not missed. Here we used n=100.
LINKS
FORMULA
n# is n primorial = product of primes 2*3*5*...*p<=n
EXAMPLE
5# = 2*3*5 = 30. 30+7 = 37 first prime,30+11 = 41 second prime.
PROG
(PARI) primorp2(n) = { pr=1; for(x=1, n, f=1; pr*=prime(x); for(m=1, n, y=pr+prime(m); if(isprime(y), f=1; for(m=m+1, n, y=pr+prime(m); if(isprime(y), print1(y", "); f=0; break, f=1)); ); if(f==0, break) ) ) }
CROSSREFS
Sequence in context: A045464 A134854 A330671 * A241718 A259184 A259186
KEYWORD
nonn
AUTHOR
Cino Hilliard, Aug 23 2004
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 May 14 06:43 EDT 2024. Contains 372528 sequences. (Running on oeis4.)