I noticed a long time ago that most numbers have an even number
of factors, and only perfect squares have an odd number of them.
So if your mystery number has five factors ... an odd number ...
I know right away that it's a perfect square.
The factors of 16 are 1, 2, 4, 8, and 16. There's your 5 factors.