Project Euler: Problem 36: Double-Base Palindromes