Not too long ago, a person who shall not be named challenged me to a math problem apparently believing I wouldn’t be able to solve it. Little did they know I had been introduced to it when I took intro to number theory. ;)

Despite the solution being quite easy, I consider this to be one of my favorite problems. Therefore, I shall do a writeup.

The problem is to solve for $x$

Is This Prime

There was an interesting conversation I found on the CodeVision Discord server

Now we have this number, but it’s obviously huge, so we don’t want to calculate all those digits out to determine if it is prime or not.