Is 5,167 Prime?

Yes

5167  = 51671