Using Eratosthenes sieve and normal palindrome checking to get all numbers under 10 million that are both prime and palindrome.