Throughout my entire, erm, “math career,” one of my largest weaknesses has been my inability to do mental math. Many strong competitors in the olympiad scene have very strong mental math abilities. This is probably a result of speed training and such, as MathCounts is almost all speed, and even AMC and AIME probably requires fast and accurate computations. I’ve always thought that I would be fine without training myself in this aspect, but seeing as I seem to have hit a wall in improving myself, I began wondering whether or not I should focus more on it.
As an experiment, I took a problem from Putnam and Beyond from one of the beginning sections, and decided to work on it only in my head. No calculator, no pencil or paper. Just mental math. And this includes coming up with a finalized proof:
Find the least positive integer n such that any set of n pairwise relatively prime integers greater than 1 and less than 2005 contains at least one prime number.
I began by reformulating the problem into finding the greatest positive integer n such that there exists a set of n pairwise relatively prime integers in the range, none of which is a prime number.
I then start thinking about how we could come up with such a set of integers. None of them are prime, so each one has at least two prime factors. However, they are relatively prime, so if one of these primes shows up in one integer, it can’t show up in any of the others. Also, we can assume that each integer has at most two prime factors. If it has three or more, we can simply remove them and still have a working set, as the number will still not be prime.
A good way to come up with the actual number is to come up with an “intuitive” set, and work from there. I decided to start with . This is where some of the mental math kicks in! Mentally multiplying numbers is a very useful skill. Here, I had to find the largest prime that, when squared, is still less than 2005. So a good estimate is 41. To square it mentally, I used the following trick:
Now we just keep using this method to square some more! We find that , and although we can kind of guess that 47 will go over, we can still confirm that
So now we have a set of 14 integers which works, using the 14 smallest primes. At this point, we should start thinking about whether or not we can get more.
Thinking about it, since , primes that are 47 or greater must be paired with smaller primes in order to create integers within our range. However, this means that each integer in the set MUST have one of these first 14 primes! Since each prime can show up in at most one number, 14 is our achieved upper bound!
Going back to our original problem, any set of 15 or more relatively prime integers between 1 and 2005 must have at least one prime number!
This problem actually took me a day just doing it in my head. Working on it forced me to address my mental math and concentration, both of which are terrible. I’m going to continue doing this to improve my skills! Q.E.D !!

