The numbers , and are all primes . Find the sum of all possible values for .
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 first that for p = 5 we have both 4 p 2 + 1 = 1 0 1 and 6 p 2 + 1 = 1 5 1 being prime, so p = 5 is one such value.
Primes other than 5 are equivalent to one of 1 , 2 , 3 , 4 modulo 5 . Looking at these case by case:
p ≡ 1 ( m o d 5 ) ⟹ 4 p 2 + 1 ≡ 0 ( m o d 5 ) , so 4 p 2 + 1 is not prime;
p ≡ 2 ( m o d 5 ) ⟹ 6 p 2 + 1 ≡ 0 ( m o d 5 ) , so 6 p 2 + 1 is not prime;
p ≡ 3 ( m o d 5 ) ⟹ 6 p 2 + 1 ≡ 0 ( m o d 5 ) , so 6 p 2 + 1 is not prime;
p ≡ 4 ( m o d 5 ) ⟹ 4 p 2 + 1 ≡ 0 ( m o d 5 ) , so 4 p 2 + 1 is not prime.
So only if p ≡ 0 ( m o d 5 ) will it be even possible for both 4 p 2 + 1 and 6 p 2 + 1 to be prime, so for both these expressions and p itself to be prime, p = 5 is the only possibility. As we have shown already that p = 5 satisfies the conditions, the sum of all possible values for p is 5 .