I'm making a fun little passcode program on the graphscreen (TI-84CSE) and I was wondering what you guys think is the best way to optimize this code? This isn't the actual code, it's just to show what I want. The slight deviation in numbers (24 to 64 is adding 40, 64 to 103 is adding 39) makes is a bit iffy for me on how to optimize it. Binary logic? Extra variables? This should be in a For( loop obviously, being repeated 6 times only