Is 4,877 Prime?

Yes

4877  = 48771