Is 5,107 Prime?

Yes

5107  = 51071