Is 5,087 Prime?

Yes

5087  = 50871