OFFSET
1,10
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..65537
EXAMPLE
For 30 = 2*3*5, 2 and 3 are separated by only 1, so a(30) = 1.
MATHEMATICA
<<NumberTheory`NumberTheoryFunctions` pfl[x_] :=PrimeFactorList[x] pd[x_] :=Delete[RotateLeft[pfl[x]]-pfl[x], -1] Table[Min[pd[w]], {w, 1, 1000}] (* Labos Elemer, Jan 05 2005 *)
Table[Min[Differences[Transpose[FactorInteger[n]][[1]]]], {n, 100}]/.\[Infinity]->0 (* Harvey P. Dale, Jul 27 2015 *)
PROG
(PARI) A100573(n) = if(omega(n)<=1, 0, my(ps=factor(n)[, 1]); vecmin(vector((#ps)-1, i, ps[i+1]-ps[i]))); \\ Antti Karttunen, Mar 03 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Jan 02 2005
EXTENSIONS
More terms from Labos Elemer, Jan 05 2005
STATUS
approved