Naming ionic and molecular compounds
The name of a compound depends on how its atoms are held together. A metal with a non-metal makes an ionic compound, named without number prefixes. Two non-metals make a molecular compound, which uses prefixes to tell you how many of each atom there are.
A worked example
CaCl₂ has a metal and a non-metal, so it's ionic. Name the metal, then the non-metal with -ide: calcium chloride. The charges set the ratio, Ca²⁺ and Cl⁻, so no prefix is needed. N₂O₄ has two non-metals, so it's molecular. Use prefixes: dinitrogen tetroxide. Going the other way, aluminum oxide has Al³⁺ and O²⁻. The charges balance with two aluminum and three oxygen ions, so the formula is Al₂O₃.
The mistake people actually make
Never use prefixes for ionic compounds: CaCl₂ is calcium chloride, not calcium dichloride. In molecular names, the first element never takes mono-, so CO is carbon monoxide, not monocarbon monoxide.