Candidates for all public offices to be voted for at the general election in this state or in any political division thereof, except electors of president and vice president of the United States nominated by the political parties at state conventions, shall be nominated directly by petition as hereinafter provided, or at the primary for the general election held pursuant to this title.
N.J.S. § 19:13-1