A number with exactly 3 factors is the square of a prime number. The largest 4-digit number that is a perfect square of a prime will be the square of the largest prime smaller than 100. That prime is 97.
Didn't find the answer you were looking for?