OFFSET
1
LINKS
FORMULA
a(n) >= A322585(n) for all n.
MATHEMATICA
Array[Boole[MemberQ[{{0}, {1}}, Union@Prepend[Differences[#], First[#]] &@ PrimePi@ FactorInteger[#][[All, 1]] ] ] &, 120] (* Michael De Vlieger, Feb 25 2021 *)
PROG
(PARI) A341629(n) = if(1==n, 1, my(f=factor(n)[, 1]~); (primepi(f[#f])==#f));
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Feb 25 2021
STATUS
approved