Math, primes
Precalculate, ad hoc
Kaprekar number, brute force once to build all possible numbers
Factorization