The cast numbers have nothing to do with position. The small stamped numbers determine where the cap fits. If cap fits tight in register, then it most likely the correct one.
Install cap in marked position and physically look at the cross hatch pattern and any hangover into the bore. If you can feel the cap hangover into the bore, something is wrong. If the cross hatch doesn't match it's wrong. No. 4 is never in front position.