This does it for -n 3 but for -n 1 and -n 2 there are bugs to be
worked out.

for -n 1 it returns 9x1, which is a questionable factoring. 9
is certainly the correct answer though so I will leave it.

for -n 2 it misses the solution 9009=91x99 and finds an
earlier solution.