A Primed Prime

Find the sum of all prime numbers p p such that p 2 + 2 p p^2 + 2^p is also a prime number.

Note: 1 is not a prime!


The answer is 3.

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

Timothy Ong
Oct 22, 2016

All primes p > 3 p>3 can be expressed in the form p = 6 k ± 1 p=6k \pm1 because 6 k ± 2 6k \pm 2 is divisible by 2 2 and 6 k ± 3 6k\pm 3 is divisible by 3. 3.

Substituting this into the equation,

p 2 = 36 k 2 ± 12 k + 1 1 m o d 3 p^{2} = 36k^{2} \pm 12k + 1 \equiv 1 \mod 3

When 2 m 2 m o d 3 2^{m} \equiv 2 \mod 3 , then 2 m + 1 1 m o d 3 2^{m+1} \equiv 1 \mod 3 and 2 m + 2 2 m o d 3 2^{m+2} \equiv 2 \mod 3

Therefore for all odd n 2 n 2 m o d 3 2^{n} \equiv 2 \mod 3

Hence for all p > 3 p>3 , p 2 + 2 p 0 m o d 3 p^{2} + 2^{p} \equiv 0 \mod 3 and is not prime.

Therefore we only have to check the remaining cases p = 2 p=2 and p = 3 p=3

Clearly only p = 3 p=3 works which gives p 2 + 2 p = 17 p^{2} + 2^{p} = 17 and we are done :)

Nicely done!

Minor typo in the first line, it should be p = 6 k ± 1 p = 6k \pm 1 .

Calvin Lin Staff - 4 years, 7 months ago

Log in to reply

Thanks! It's been edited:)

Timothy Ong - 4 years, 7 months ago

Ooooow i am so stupid... i counted p=1 too... so i came to 4 haha.

Peter van der Linden - 4 years, 7 months ago

Amazingly done! Loved it😀😁😁

Unknown Zen - 4 years, 7 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...