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!)
A128874 Numbers n such that 16 + the product of the first n lesser twin primes (A097489) is prime. 0
1, 2, 3, 469 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
It is interesting from the example that the first three primes 19,31 and 181 greater than twinl#(n) + 16 are all greater twin primes. The next PRP is the 1824 digit number twinl#(469) + 16 and is not part of a twin prime pair.
LINKS
FORMULA
Define twinl#(n)as the product of the first n lesser twin primes. Then if twinl#(n)+ 16 is prime, list n.
EXAMPLE
Twinl#(3) + 16 = 3*5*11+16 = 181 is prime so 3 is in the sequence.
PROG
(PARI)
twinl(n) = { local(c, x); c=0; x=1; while(c<n, if(isprime(prime(x)+2), c++); x++; ); return(prime(x-1)) } \\ The n-th lower twin prime.
twiprimesl2(n, a) = { local(pr, x, y, j); for(a=0, n, for(j=1, n, pr=1; for(x=1, j, pr*=twinl(x); ); y=pr+2^a; if(ispseudoprime(y), print1(y", "); break ) ) ) } \\ Cino Hilliard, May 08 2007
(PARI) lista(nn) = { for(n=1, nn, if (ispseudoprime(16+prod(i=1, n, twinl(i))), print1(n, ", "))); } \\ Michel Marcus, Feb 10 2014
CROSSREFS
Sequence in context: A109855 A306370 A355644 * A196070 A173342 A090510
KEYWORD
more,nonn
AUTHOR
Cino Hilliard, May 08 2007
EXTENSIONS
Partially edited by Michel Marcus, Feb 10 2014
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 19 03:05 EDT 2024. Contains 371782 sequences. (Running on oeis4.)