Project Euler #239: Twenty-two Foolish Primes