click flag
Basically any number that can be written in the for p^n where p is prime and n is an interger has it's own digit. The rest just depends on how they are factorized.