(Well my qualification is this – I took a semester of Theory of Computation class about a decade ago and barely managed to pass without screwing up my scholarship in the foreign country I was studying in. Today I write PHP during my day job..)
One way to try to get the private key is to try all possibilities. For an RSA key with 4096 bits, there are 2^4096 possible keys, which I’m told is greater than the number of atoms in the universe.
So you see, this is a O(2^n) operation. ie., the algorithm is “exponential”.
You’ll never finish checking all those combinations before the universe ends, or at least not before the Sun explodes and the Earth ceases to exist as we know it.
Unless you’re really really lucky and a key you try during your lifetime happens to be the actual private key. But the likelihood of that happening is practically zero because of the sheer number of possibilities.
The point is, you have to exhaustively check all possible keys. Exponential.
P=NP means there exists a polynomial time (O(n^k)) algorithm to find the private key. ie., it can be found relatively quickly.
This is all I know. I skipped a lot of details. Experts can chime in.
This is implying that if P=NP then there must be a polynomial time algorithm for finding the permanent. But that isn’t known to be true. It would be consistent with all known results if P=NP but computing the permanent is still not possible in polynomial time.
Finding the permanent of a 0/1 matrix in polynomial time is stronger than P=NP; it would let you count the number of solutions to NP problems in polynomial time.