Determinant formula and unitarity for the W3 algebra