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!)
A099161 Numbers m such that there is at least one k < prime(m+1) such that k*(prime(m)#)^2 - 1 and k*(prime(m)#)^2 + 1 are twin primes. 2
1, 2, 3, 4, 5, 10, 16, 18, 24, 31, 32, 35, 38, 51, 58, 71, 75, 78 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
2 is a term because the 2nd primorial is 6, and both 2*36-1 & 2*36+1 are primes, with corresponding k=2.
PROG
(PARI) isok(n) = {my(q = nextprime(prime(n)+1)); for (k=1, q, x = k*prod(i=1, n, prime(i))^2; if (isprime(x-1) && isprime(x+1), return (1)); ); 0; } \\ Michel Marcus, Nov 14 2018
CROSSREFS
Cf. A099160 (corresponding primes), A099162 (k values).
Sequence in context: A205962 A134220 A179146 * A369592 A033077 A190912
KEYWORD
nonn,more
AUTHOR
Pierre CAMI, Oct 01 2004
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 April 16 08:27 EDT 2024. Contains 371698 sequences. (Running on oeis4.)