Is 5,171 a Twin Prime?

No

5171 is prime but 5173 is not prime

5171  = 51711