first version: brute force
feature for palindrome, multiple of 11