My relatives are primes

What is the largest integer N N such that all the integers between 1 1 and N N (Excluding 1 1 and N N ) that are relatively prime to N N are primes?


The answer is 30.

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.

1 solution

Steven Perkins
Apr 11, 2014

Call the number we are looking for N. In order not be relatively prime to 4, 8, 16... N should be a multiple of 2. In order to not be relatively prime to 9, 81, ... N should be a multiple of 3.

Continuing this way, we'd like N to be a multiple of 5. We're now up to 2 * 3 * 5 = 30 (or multiples of 30). Can we add 7 to the product? That gives us 210? Oops, now we've got 11 * 11 = 121 which is relatively prime to 230, but is NOT prime itself.

Can we use 60? No, because 7 * 7 = 49 is NOT prime. So the best we can do seems to be 30 \boxed{30}

Basically it's 1 n p k < p n + 1 2 \prod_1^np_k<p_{n+1}^2

Kenny Lau - 6 years, 11 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...