Prime factorization of 5,871

5871  = 31*191*1031