A096649 First occurrence where n# - p is a prime for primes p = 3,5,...
3, 23, 199, 2297, 30013, 510481, 9699667, 223092827, 6469693189, 200560490057, 7420738134751, 304250263527163, 13082761331669941, 614889782588491343, 32589158477190044657, 117288381359406970983181
Offset: 2
Keywords
Examples
5# = 2*3*5 = 30. 30-3 = 27,30-5=25,30-7 = 23 prime
Programs
-
PARI
pr=1;forprime(x=2,n,pr*=x;forprime(m=2,n, y=pr-m;if(isprime(y),print1(y",");break)))
Formula
n# is n primorial = product of primes 2*3*5*...*p<=n