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!)
A139439 Numbers n such that primorial(n)/2 + 4 is prime. 24

%I #27 Apr 29 2021 01:46:29

%S 1,2,3,4,7,18,21,70,76,323,340,556,572,3433,5457,5897,10820

%N Numbers n such that primorial(n)/2 + 4 is prime.

%C a(17) > 25000. - _Robert Price_, Nov 11 2016

%t k=1/2;a={};Do[k=k*Prime[n];If[PrimeQ[k+4], Print[n];AppendTo[a, n]], {n, 600}];a (* _Vladimir Joseph Stephan Orlovsky_, Aug 20 2008; corrected by _Ray Chandler_, Jun 16 2013 *)

%t Position[#/2+4&/@FoldList[Times, Prime[Range[600]]],_?(PrimeQ[#]&)]// Flatten (* The program generates the first 13 terms of the sequence. To generate more, increase the Range constant,but the program may take a long time to run.*) (* _Harvey P. Dale_, Mar 20 2021 *)

%o (PARI) n=0; t=1/2; forprime(p=2,1e9, n++; t*=p; if(ispseudoprime(t+4), print1(n", "))) \\ _Charles R Greathouse IV_, Apr 28 2015

%Y Cf. A067026, A067027, A139439-A139457, A103514.

%K nonn,more

%O 1,2

%A _Artur Jasinski_, Apr 21 2008

%E a(1)=1 inserted and a(12)-a(13) from _Ray Chandler_, Jun 16 2013

%E a(14)-a(16) from _Robert Price_, Nov 11 2016

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 23 12:44 EDT 2024. Contains 371913 sequences. (Running on oeis4.)