Is 5,039 Prime?

Yes

5039  = 50391