OFFSET
1,1
COMMENTS
3^5-2=241 prime, 13^5-2=371291 prime,...
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
MATHEMATICA
lst={}; Do[p=n^5-2; If[PrimeQ[p], AppendTo[lst, n]], {n, 0, 7!}]; lst
Select[Range[2 10^3], PrimeQ[#^5 - 2] &] (* Vincenzo Librandi, Mar 20 2014 *)
PROG
(Magma) [n: n in [1..500] | IsPrime(n^5-2)]; // Vincenzo Librandi, Nov 26 2010
(PARI) is(n)=isprime(n^5-2) \\ Charles R Greathouse IV, Feb 17 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vladimir Joseph Stephan Orlovsky, Jan 15 2009
STATUS
approved