Each prosecutor shall be vested with the same powers and be subject to the same penalties, within his county, as the attorney general shall by law be vested with or subject to, and he shall use all reasonable and lawful diligence for the detection, arrest, indictment and conviction of offenders against the laws.
N.J.S. § 2A:158-5