Trying to make a zip gun?
Unless you made a typo, 40 grams (grms) equals over 617 grains. Since I'm not sure what you mean by "1/2in gas pipe" and how it would be sealed at the "breech" end, I would be concerned about not having all ten digits remaining at the end of the experiement.
JHG