login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A096649
First occurrence where n# - p is a prime for primes p = 3,5,...
1
3, 23, 199, 2297, 30013, 510481, 9699667, 223092827, 6469693189, 200560490057, 7420738134751, 304250263527163, 13082761331669941, 614889782588491343, 32589158477190044657, 117288381359406970983181
OFFSET
2,1
FORMULA
n# is n primorial = product of primes 2*3*5*...*p<=n
EXAMPLE
5# = 2*3*5 = 30. 30-3 = 27,30-5=25,30-7 = 23 prime
PROG
(PARI) pr=1; forprime(x=2, n, pr*=x; forprime(m=2, n, y=pr-m; if(isprime(y), print1(y", "); break)))
CROSSREFS
Sequence in context: A370105 A372506 A241886 * A370283 A235131 A235360
KEYWORD
nonn
AUTHOR
Cino Hilliard, Aug 22 2004
STATUS
approved