simple improvement check one base, then see if palindrome in second base
save checking all in both bases