completes Primes & Reverse String