Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Here are two applications of stacks to number theory.
Section 3 of this paper, which solves the diophantine equation $x^2 + y^3 = z^7$, explains the connection between stacks and generalized Fermat equations.
This post explains how stacks fit into the proof of Deuring's formula for the number of supersingular elliptic curves over a finite field.