prime sieve
fun with palindromes
added a little error handling