added no solution display if none found.
bug on -n 2 was found in factor.c