If your solution works correctly for $n=1$ and $a_1 \leq 100$, it will score at least $25$ points.

If your solution works correctly for $n=1$ and $a_1 \leq 10^6$, it will score at least $50$ points.

If your solution works correctly for $n=1$, it will score at least $75$ points.