I considered that there could be + or - sign before a number.
If input is 0 output is 2 , isn't it.
I also stared to loop from (max+1) where max is the numerical maximum character ( ie A = 10 and a = 26 and so on).
Then later I converted it to decimal , considering all the bases, and checked whether it is divisible by (Base - 1).
What am I doing wrong.
I will not post my code as yet ...
Can anyone give me some critical input.
Thanx
![:cry:](./images/smilies/icon_cry.gif)