OFFSET
1,1
EXAMPLE
8179 = 2^13 - 13
MATHEMATICA
nn = 600000; mx = Floor[Log[2, nn]]; t2 = Select[Table[2^n - n, {n, Prime[Range[PrimePi[mx]]]}], PrimeQ]; mx = Floor[Sqrt[nn]]; tp = Select[Table[n^2 - 2, {n, Prime[Range[PrimePi[mx]]]}], PrimeQ]; Union[t2, tp] (* T. D. Noe, May 01 2012 *)
Module[{upto=350000, r}, r=Floor[Sqrt[upto+2]]; Select[Union[Select[ (#1[[1]]^#1[[2]]-#1[[2]]&)/@Tuples[Prime[Range[r]], 2], PrimeQ]], #1<=upto&]] (* Harvey P. Dale, Dec 07 2012 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Alex Ratushnyak, May 01 2012
STATUS
approved