Is 1,583 Prime?

Yes

1583  = 15831