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!)
A140315 Numbers n such that n!/n#-1 and n!/n#+1 is a twin prime pair. 4
4, 5, 8, 34, 280, 281 (list; graph; refs; listen; history; text; internal format)
OFFSET
4,1
COMMENTS
4,5 and 280,281 result in the same respective twin prime pairs. Using gmp, testing n < 4000, the last 3-prp found was the 8897 digit 3-prp, 3337!/3337#-1.
LINKS
G. L. Honaker, Jr. and Chris Caldwell, Prime Curios! 281
FORMULA
n# is the primorial function A034386(n).
A140293 INTERSECT A140294. - R. J. Mathar, Feb 27 2012
EXAMPLE
8!/8#-1 = 191,8!/8#-1 = 193. 191 and 193 form a twin prime pair.
MATHEMATICA
Primorial[n_] := Product[Prime[i], {i, 1, PrimePi[n]}];
Select[Range[
1000], (p = (#! / Primorial[#]);
PrimeQ[p + 1] && PrimeQ[p - 1]) &] (* Robert Price, Oct 11 2019 *)
PROG
(PARI) g(n) = for(x=1, n, y=x!/primorial(x)-1; z=nextprime(y+1); if(ispseudoprime(y)&&z-y==2, print1(x", "))) primorial(n) = \ The product of primes <= n using the pari primelimit. { local(p1, x); if(n==0||n==1, return(1)); p1=1; forprime(x=2, n, p1*=x); return(p1) }
CROSSREFS
Sequence in context: A207191 A240790 A229861 * A055497 A194419 A175380
KEYWORD
hard,nonn
AUTHOR
Cino Hilliard, May 25 2008
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 5 23:49 EDT 2024. Contains 372290 sequences. (Running on oeis4.)