Added report for ex.8 and a check in rsa

The check is in case the two primes were not generated