Is 5,197 Prime?

Yes

5197  = 51971