The number of distinct prime factors of the largest 4-digit number is

Largest 4-digit number is 9999


9999 = 32× 11× 101


So distinct prime factors are 3, 11 and 101


Hence, answer = 3

28