OFFSET
1,3
COMMENTS
The number of applications to reach 1 is A322027(n). Positions of first appearances are A076610. - Gus Wiseman, Jan 17 2020
LINKS
FORMULA
EXAMPLE
For n = 360 = 2^3 * 3^2 * 5 = prime(1)^3 * prime(2)^2 * prime(3), 1 is not a prime, but 2 and 3 are, thus a(360) = 2^2 * 3 = 12.
MATHEMATICA
Table[Times@@Cases[FactorInteger[n], {p_?(PrimeQ[PrimePi[#]]&), k_}:>PrimePi[p]^k], {n, 40}] (* Gus Wiseman, Jan 17 2020 *)
PROG
CROSSREFS
Positions of 1's are A320628.
Positions of terms > 1 are A331386.
Primes of prime index are A006450.
Primes of nonprime index are A007821.
Products of primes of prime index are A076610.
Products of primes of nonprime index are A320628.
The number of prime prime indices is A257994.
The number of nonprime prime indices is A330944.
Numbers whose prime indices are not all prime are A330945.
KEYWORD
nonn,mult
AUTHOR
Antti Karttunen, Nov 26 2017
STATUS
approved