OFFSET
3,1
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 3..1000
FORMULA
EXAMPLE
a(3) = 2, since the greatest prime divisor of prime(3) - 3 = 5 - 3 = 2 is 2.
MATHEMATICA
nn=80; Drop[FactorInteger[#][[-1, 1]]&/@(First[#]-Last[#]&/@Thread[ {Prime[Range[nn]], Range[nn]}]), 2] (* Harvey P. Dale, Jun 21 2011 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Zak Seidov, Oct 19 2002
STATUS
approved