OFFSET
1,1
COMMENTS
It is interesting from the example that the first three primes 19,31 and 181 greater than twinl#(n) + 2^4 are all greater twin primes. The next prime is the 1824 digit number twinl#(469) + 2^4 and is not part of a twin prime pair.
FORMULA
Define twinl#(n)as the product of the first n lesser twin primes. Then if twinl#(n)+2^k, k=1,2,3..., is prime, list it and skip to the next n.
EXAMPLE
for k=4,Twinl#(1) + 2^4 = 19, the first prime (2^4)-th greater than twinl#(1).
PROG
(PARI) 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 ) ) ) } twinl(n) = \The n-th lower twin prime { local(c, x); c=0; x=1; while(c<n, if(isprime(prime(x)+2), c++); x++; ); return(prime(x-1)) }
CROSSREFS
KEYWORD
nonn
AUTHOR
Cino Hilliard, May 08 2007
STATUS
approved