A325223 Sum of the prime indices of n minus the greater of the number of prime factors of n counted with multiplicity and the largest prime index of n.
0, 0, 0, 0, 0, 1, 0, 0, 2, 1, 0, 1, 0, 1, 2, 0, 0, 2, 0, 2, 2, 1, 0, 1, 3, 1, 3, 2, 0, 3, 0, 0, 2, 1, 3, 2, 0, 1, 2, 2, 0, 3, 0, 2, 4, 1, 0, 1, 4, 4, 2, 2, 0, 3, 3, 3, 2, 1, 0, 3, 0, 1, 4, 0, 3, 3, 0, 2, 2, 4, 0, 2, 0, 1, 5, 2, 4, 3, 0, 2, 4, 1, 0, 4, 3, 1, 2
Offset: 1
Keywords
Examples
88 has 4 prime indices {1,1,1,5} with sum 8 and maximum 5, so a(88) = 8 - max(4,5) = 3.
Crossrefs
Programs
-
Mathematica
primeMS[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]]; Table[Total[primeMS[n]]-Max[Length[primeMS[n]],Max[primeMS[n]]],{n,100}]
Comments