Smallest prime

q = 2 π ( p ) p \large q = 2^{ \pi (p) } - p

In the above equation, p p and q q are prime numbers where q > 3 q>3 and π ( p ) \pi (p) is the number of primes that are less than or equal to p p .

Find the smallest value of q q satisfying the above conditions.


The answer is 2017.

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

Maria Kozlowska
Jan 6, 2017

2 11 31 = 2017 2^{11}-31=2017 .

π ( 31 ) = 11 \pi(31)=11 .

This question was taken from here

Is there a way to solve this problem without trial and error? (I did brute force to get the answer)

Pi Han Goh - 4 years, 5 months ago

Log in to reply

I do not know that. I just found out that it is also called a Solinas prime .

Maria Kozlowska - 4 years, 5 months ago

Log in to reply

The next smallest value is 2 19 67 = 524221 2^{19} - 67 = 524221 .

I guess the natural follow-up question would be whether the number of such pairs ( p , q ) (p,q) is finite or infinite. This is likely an open question, but it's still interesting to think about.

Brian Charlesworth - 4 years, 5 months ago

Log in to reply

@Brian Charlesworth I wonder if it works only for prime values of π ( p ) \pi(p) .

Maria Kozlowska - 4 years, 5 months ago

Log in to reply

@Maria Kozlowska It doesn't look like it. The next two cases are π ( 89 ) = 24 \pi(89) = 24 and π ( 101 ) = 26 \pi(101) = 26 before getting to another prime with π ( 283 ) = 61 \pi(283) = 61 . This list ramps up quite quickly, with the 23rd entry being in excess of 50000 50000 , but if I had to guess I would say that the list in infinite.

Brian Charlesworth - 4 years, 5 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...