Is 5,147 Prime?

Yes

5147  = 51471