On an arithmetic function considered by Pillai
For every positive integer let be the largest prime number . Given a positive integer , we study the positive integer such that if we define recursively for , then is a prime or . We obtain upper bounds for as well as an estimate for the set of whose takes on a fixed value .