OFFSET
1,7
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
For n=2, A064216(2) = 2, thus there is exactly one distinct prime that can be reached when iterating A064216 starting from 2, thus a(2) = 1.
For n=19, A064216(19) = 31 (a prime), A064216(31) = 59 (a prime) and A064216(59) = 44 (not a prime), thus there are exactly three distinct primes that are encountered when iterating A064216 starting from 19 before a nonprime is reached, thus a(19) = 3 (the count includes also the starting prime 19).
PROG
CROSSREFS
Cf. A005382 (gives positions of terms > 1 from its third term 7 onward).
KEYWORD
nonn
AUTHOR
Antti Karttunen, Apr 26 2017
STATUS
approved