Adding Swap Case and Counting Primes solutions