OFFSET
1,1
EXAMPLE
3121 = 5^5 - 4 is prime and therefore is in the sequence.
MAPLE
n:=1000: S:={}: for i from 1 to n do if type(5^i-4, prime)=true then S:=S union {5^i-4} end if od; S;
MATHEMATICA
Select[5^Range[90]-4, PrimeQ] (* Harvey P. Dale, Aug 23 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Jonathan D. B. Hodgson, Oct 12 2010
STATUS
approved