Sophie-Germain-Primes are prime numbers of the form q = 2p + 1 where p is also a prime.
In this challenge, sophie-germain-primes are used as prime numbers for RSA.
The problem is, that the primes q, r and s can be computed from p which makes this usage insecure.
Since we know that
This can be solved for p, and with that we can compute q, r, s and with these values we are able to compute
Calculating the private exponent is done according to textbook-rsa with
And decrypting the message is done as