Is 5,783 Prime?

Yes

5783  = 57831