A student wants to prepare a primary amine from 1-bromopropane. The student mixes 1-bromopropane with an excess of ammonia dissolved in ethanol and heats the mixture under pressure in a sealed tube.
Explain how the primary amine is formed in this reaction, and why heating under pressure is necessary.