Problem 36

Double-base palindromes

The decimal number, 585 = 1001001001_{2} (binary), is palindromic in both bases.

Find the sum of all numbers, less than one million, which are palindromic in base 10 and base 2.

(Please note that the palindromic number, in either base, may not include leading zeros.)

**
These problems are part of
Project Euler
and are licensed under
CC BY-NC-SA 2.0 UK
**