What is the smallest positive integer such that are all primes?
If you think no such exists, enter your answer as 0.
Bonus: No such exists if are all primes. Is this possible? If yes, what is the smallest
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Note that k = 1 since 3 ( 1 ) + 1 = 4 is not prime and k = 2 since 4 ( 2 ) + 1 = 9 is not prime. Now, k ≡ 1 m o d 2 , since, if it were, k + 1 ≡ 0 m o d 2 and, since we already know k = 1 , this cannot be prime.
Next, we consider k m o d 3 : k ≡ 1 m o d 3 and k ≡ 2 m o d 3 are both impossible, since they lead to 2 k + 1 ≡ 0 m o d 3 and k + 1 ≡ 0 m o d 3 , respectively (remember k = 2 . Thus k ≡ 0 m o d 3 .
Similarly, we can show that k ≡ 1 , 2 , 3 , 4 m o d 5 , and so k ≡ 0 m o d 5 . For k m o d 7 , we find that k ≡ 0 , 1 , 4 m o d 7 are all possibilities.
We could continue to test k m o d 1 1 , but at this point it is more efficient to try numbers based on the information we have. We need only test numbers that are multiples of 2, 3 and 5 (that is, multiples of 30) and which are congruent to 0, 1 or 4 mod 7. Thus our candidates are: 6 0 1 2 0 2 1 0 2 7 0 3 3 0 4 ( 6 0 ) + 1 = 1 2 1 = 1 1 2 is not prime 1 ( 1 2 0 ) + 1 = 1 2 1 = 1 1 2 is not prime 4 ( 2 1 0 ) + 1 = 8 4 1 = 2 9 2 is not prime 4 ( 2 7 0 ) + 1 = 1 0 8 1 = 2 3 × 4 7 is not prime All four are prime!