Is 5,839 Prime?

Yes

5839  = 58391