OK then. I would have done that...
If I had any knowledge of actual programming codes.
Because I had in fact thought of just testing each value individually, but I just didn't know how to do it efficiently.
I had knowledge in algebra, so I used that. But still, if I had that code before...