palindromes generated successfully, factors method broken