No.
Don't leave your wife for a prostitute. Leave her because you are unhappy but before you do that talk to her.
Ask her to go to counciling and find out, between the two of you, why you haven't had sex for 23 years. If your life is otherwise good she may (a big may lol) agree that you can go elsewhere for sex.