Is 5,827 Prime?

Yes

5827  = 58271