OFFSET
1,1
EXAMPLE
Prime(8) + 8 = 19 + 8 = 27 = 3^3.
MATHEMATICA
f[n_] := Prime[n] + n; Select[Range[10^4], ! GCD @@ Last /@ FactorInteger[f[ # ]] == 1 &] (* Ray Chandler, May 21 2005 *)
PROG
(Sage) [n for n in (1..10000) if (n+nth_prime(n)).is_perfect_power()] # Giuseppe Coppoletta, Jun 08 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, May 17 2005
EXTENSIONS
Extended by Ray Chandler, May 21 2005
STATUS
approved