The occurrence of positive and negative (26)Mg anomalies in inclusions of the Allende meteorite is explained in terms of proton bombardment of a gas of solar composition. A significant fraction of (26)Mg in the irradiated gas is stored temporarily in the form of radioactive (26)Al by the reaction (26)Mg(p,n) (26)Al. Proton fluxes of 10(17) to 10(19) protons per square centimeter per year at l million electron volts are inferred. Aluminum-rich materials condensing from the gas phase have positive (26)Mg anomalies, whereas magnesium-rich materials have negative (26)Mg anomalies. The proton flux required to account for the observed magnesium anomalies is used to investigate possible isotopic anomalies in the elements from oxygen to argon. Detectable isotopic anomalies are predicted only for neon. The anomalous neon is virtually pure (22)Ne from (22)Na decay. The predicted amount of anomalous (22)Ne is about 10(-8) cubic centimeter (at standard temperature and pressure) per milligram of sodium.