OFFSET
1,2
COMMENTS
From Bernard Schott, Apr 09 2020: (Start)
a(n) = 2 iff prime(n) is in A001359 (prime gap=2).
a(n) = 12 iff prime(n) is in A029710 (prime gap=4).
a(n) = 24 * p with p prime >= 5 iff prime(n) is in A031924 (prime gap=6).
a(n) = 2^m * q with q odd >= 3 iff prime(n+1) - prime(n) = 2*m where m = A007814(a(n)). (End)
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
p:= 2:
for i from 1 to 100 do
q:= p; p:= nextprime(p);
A[i]:= mul(min(numtheory:-factorset(i)), i=q+1..p-1);
od:
seq(A[i], i=1..100); # Robert Israel, Mar 30 2020
MATHEMATICA
pspd[{p1_, p2_}]:=Times@@(FactorInteger[#][[1, 1]]&/@Range[p1+1, p2-1]); pspd/@Partition[ Prime[Range[70]], 2, 1] (* Harvey P. Dale, Jan 12 2024 *)
PROG
(PARI) a(n) = {my(p=1, pn=prime(n)); forcomposite(c=pn, nextprime(pn+1)-1, p *= vecmin(factor(c)[, 1]); ); p; } \\ Michel Marcus, Mar 31 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Oct 23 2002
EXTENSIONS
More terms from Sascha Kurz, Jan 22 2003
STATUS
approved