Closed BertLisser closed 11 years ago
Yes, p was probably better. At first, I returned p and tested lookup the mersenne numbers up on wikipedia and found different numbers. I noticed that I was displaying p instead of the mersenne numbers. Displaying both of them would have been better.
The following is a nice straight-forward solution, but it is not very efficient.
The question was What is the least composite number that you can find that fools the check, for testF k with k=1,2,3. Your answered with a function testF with no parameter k. In your case k is fixed with 10.
The results must be mentioned more clearly. For example:
why not mentioning p instead of m in the case of Mersenne Primes