However, your mathematical instincts and ability to understand what the heck I'm talking about is very impressive.
Thank you! Nice to know that going to a STEM school pays off for something. :)
if the guess is 29 off, it doesn't give the "(x-673) is a prime number."
Ye, I've noticed it doesn't give it when it's a prime away from the target number (more on that at the end).
The process
Of course! Using modular arithmetic to not have to calculate large numbers is genius! Especially since you're not actually needing to calculate all the candidates, just the center ones. For step 4, are you approximating the value (i.e. 695/11 ≈ 695/10 ≈ 70 => I need n ≈ 35 )?
Step 11 and 12
How high do you know your squares? While I can see how 702 ± 288 are obviously not squares (the sum ends in 0 => check if 30*30 or 40*40 is equal to 990 meanwhile the difference is 414, so not 20*20 = 400 and not 21*21 either else it'd end in a 1), I'm still interested in knowing. Me personally, I know up to 16, 20/30/40/etc, and 25.
I may be overlooking something obvious.
I think "x+guess" appears when "x-guess" doesn't (and when other hints don't take priority). I think. This is pure speculation.
However, I can tell you when "x-guess" doesn't appear: if x - guess = largest_prime (Edit 2: and x + guess = not_a_prime). For example: today (10/16) I started with 499, got "largest prime divisor is 43". Using pen and paper, I find that 800 is a possible candidate, is close to the center, and frankly easy to do calculations with.
Now, 800 also gives me "largest prime divisor is 43", but this time, instead of complaining, I actually take the time to think about it. I know that x > 800, so the remaining possibilities are (843, 886, 929, 972). As previously mentioned, it's not 843 or 886, else it wouldn't have given me the 43 hint. It's not 972 (Edit: or 886) either, else I'd've gotten "x and 800's largest divisor is 4". That leaves only 929 (which is indeed today's answer). Pretty neat, right?
Edit: Uh, whoops, largest_prime*2 is nonsense.
To further my point:
929 - 700 = 229. That's prime, so we get x+700.
929 - 843 = 86 = 43 * 2. That's prime*2, so we get x+843. Oh wait no we don't
929 - 886 = 43. That's prime, so we get x+886.
929 - 600 = 329 = 47*7. So we get x-600.
929 - 800 = 129 = 43*3. We get x-800.
Edit 2: here's something interesting: if both x-guess and x+guess are prime numbers (try 918 for example), it gives x-guess is prime.