Project Euler 120 - Square Remainders

Official link: https://projecteuler.net/problem=120

Thought Process

Some modular arithmetic will help make this problem easier

Interactive Code

Enter a number (yourinput)

Code will output the anwser from 1 to yourinput