Evaluate $10^{20231016} \pmod{1021}$ (Hint : $1021$ is a prime)
Does anyone know how to solve this question?
I found that $10^{20231016} \pmod{1021}$ is equivalent to $10^{336} \pmod{1021}$ using Fermat's Little Theorem, but I don't know how to handle it in the following steps.