The primary factors to consider when selecting piping materials for irrigation and HVAC systems include cost, corrosion resistance, strength and durability, ease of installation, maintenance requirements, and temperature and pressure ratings. These factors vary in importance depending on the specific application, with corrosion resistance being critical for irrigation systems exposed to soil and water, and temperature and pressure ratings being crucial for HVAC systems handling refrigerants and high-pressure fluids.