What is the largest value of n less than 100,000 for which the expression 8(n-2)^5-n^2+14n-24 is a multiple of 5?

a=90000; c= 8*(a-2)^5-a^2+14*a-24; if(c%5==0, goto3, goto4);printc, a; a++;if(a<110000, goto1, 0)

The largest value of n < 100,000 is n =99,997

I wish the idiot who produces these useless computer derived answers would desist.