ALBUQUERQUE, N.M. (AP) — New Mexicans will choose Democratic and Republican nominees for governor Tuesday as the state grapples with high rates of violent crime, chronically underperforming schools and cuts to federal programs that are key safety nets for residents.

Despite New Mexico's persistent challenges, the primary election comes at a time of promise for the next governor. Surging oil prices caused by the Iran war have translated into an influx of tax revenue to state coffers. New Mexico is the nation's second-largest oil-producing state behind Texas, and the industry's revenue funds an array of progressive social programs that include universal childcare.

LIVE RESULTS: New Mexico midterm primaries

For the first time, the primary is open to voters who are independent. The state's semi-open primary system, which was signed into law by Democratic Gov. Michelle Lujan Grisham last year, allows the roughly 23% of New Mexico voters who are not affiliated with a political party to request either a Democratic or Republican ballot.

While voters will decide primaries in three congressional seats, a U.S. Senate seat and a long list of statewide offices, the governor's race is the main attraction.