OFFSET
1,1
COMMENTS
Idea resulted from seqfan posts by Artur Jasinski.
MATHEMATICA
a[n_] := If[PrimeQ[(2*n - 1)] && PrimeQ[(2*n + 1)], (2^(2*n - 1) - 1)*(2^(2*n + 1) + 1), {}]; Flatten[Table[a[n], {n, 1, 100}]]
(2^#[[1]]-1)(2^#[[2]]+1)&/@Select[Partition[Prime[Range[100]], 2, 1], #[[2]]- #[[1]]==2&] (* Harvey P. Dale, Dec 03 2012 *)
PROG
(PARI) forprime(p=2, 1e3, if(isprime(q=p+2), print1((2^p-1)*(2^q+1)", "))) \\ Charles R Greathouse IV, Nov 07 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Roger L. Bagula, Nov 24 2008
EXTENSIONS
a(9) added by Harvey P. Dale, Dec 03 2012
STATUS
approved