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!)
A096649 First occurrence where n# - p is a prime for primes p = 3,5,... 1

%I #4 Oct 01 2013 17:58:02

%S 3,23,199,2297,30013,510481,9699667,223092827,6469693189,200560490057,

%T 7420738134751,304250263527163,13082761331669941,614889782588491343,

%U 32589158477190044657,117288381359406970983181

%N First occurrence where n# - p is a prime for primes p = 3,5,...

%F n# is n primorial = product of primes 2*3*5*...*p<=n

%e 5# = 2*3*5 = 30. 30-3 = 27,30-5=25,30-7 = 23 prime

%o (PARI) pr=1;forprime(x=2,n,pr*=x;forprime(m=2,n, y=pr-m;if(isprime(y),print1(y",");break)))

%K nonn

%O 2,1

%A _Cino Hilliard_, Aug 22 2004

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 August 6 17:25 EDT 2024. Contains 374981 sequences. (Running on oeis4.)