Is 5,023 Prime?

Yes

5023  = 50231

5023 is a Twin Prime!