Is 5,171 Prime?

Yes

5171  = 51711