Is 5,871 Prime?

No

5871  = 31*191*1031