Is 5,861 Prime?

Yes

5861  = 58611