solve problem 36 in a more efficint way
first generate all the palindromes in base 10 , then check whether it is a palindrome in base 2