OFFSET
1,1
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..1000
EXAMPLE
2^2 + 2^2 - 1 = 7;
2^2 + 2^3 - 1 = 11.
MATHEMATICA
f[x_, y_] := 2^x + 2^y - 1; imax = 20; lst= {}; Do[p = f[x, y]; If[p < 2^imax && PrimeQ[p], AppendTo[lst, p]], {y, 0, imax}, {x, 0, y}]; lst (* Orlovski *)
nn=20; Select[Flatten[Table[2^x + 2^y - 1, {x, 0, nn}, {y, 0, x}]], #<2^nn && PrimeQ[#]&] (* Alonso del Arte, Apr 09 2011 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladimir Joseph Stephan Orlovsky, Apr 08 2011
STATUS
approved