A379311 Number of prime indices of n that are 1 or prime.
0, 1, 1, 2, 1, 2, 0, 3, 2, 2, 1, 3, 0, 1, 2, 4, 1, 3, 0, 3, 1, 2, 0, 4, 2, 1, 3, 2, 0, 3, 1, 5, 2, 2, 1, 4, 0, 1, 1, 4, 1, 2, 0, 3, 3, 1, 0, 5, 0, 3, 2, 2, 0, 4, 2, 3, 1, 1, 1, 4, 0, 2, 2, 6, 1, 3, 1, 3, 1, 2, 0, 5, 0, 1, 3, 2, 1, 2, 0, 5, 4, 2, 1, 3, 2, 1, 1
Offset: 1
Keywords
Examples
The prime indices of 39 are {2,6}, so a(39) = 1. The prime indices of 70 are {1,3,4}, so a(70) = 2. The prime indices of 98 are {1,4,4}, so a(98) = 1. The prime indices of 294 are {1,2,4,4}, a(294) = 2. The prime indices of 1911 are {2,4,4,6}, so a(1911) = 1. The prime indices of 2548 are {1,1,4,4,6}, so a(2548) = 2.
Crossrefs
Positions of first appearances are A000079.
These "old" primes are listed by A008578.
Positions of nonzero terms are A379313.
A080339 is the characteristic function for the old prime numbers.
A376682 gives k-th differences of old prime numbers, see A030016, A075526, A173390, A376683, A376855.
Other counts of prime indices:
Programs
-
Mathematica
prix[n_]:=If[n==1,{},Flatten[Cases[FactorInteger[n],{p_,k_}:>Table[PrimePi[p],{k}]]]]; Table[Length[Select[prix[n],#==1||PrimeQ[#]&]],{n,100}]
Formula
Totally additive with a(prime(k)) = A080339(k).
Comments