Even if RH wasn’t true, it still would have been solvable in that a counter example could be found.
Factoring is widely believed to be hard, but the important thing is that it either is or isn’t! If there is no fast classical factoring algorithm, AI is not going to find one! (To state the obvious)