OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
Example: For n = 3, a(3)=19.
The prime P = 19
P-1 = 18 (largest prime factor of 18 is 3)
P+1 = 20 (largest prime factor of 20 is 5)
19 > 3*5.
MATHEMATICA
lpfQ[n_]:=Module[{a=FactorInteger[n-1][[-1, 1]], b=FactorInteger[n+1][[-1, 1]]}, n>a*b]; Select[Prime[Range[200]], lpfQ] (* Harvey P. Dale, Aug 16 2013 *)
PROG
(PARI) lpf(n) = {f = factor(n); return (f[#f~, 1]); }
lista(nn) = {forprime(p=3, nn, if ((p > lpf(p-1)*lpf(p+1)), print1(p, ", "); ); ); } \\ Michel Marcus, Jul 25 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Karl Hovekamp, Sep 14 2010
STATUS
approved