Mersenne Primes

I saw an interesting challenge on SoloLearn about writing code to find all the Mersenne primes up to a number.  I started by writing a function...