Menu Close

List-all-primes-p-for-which-p-2-and-p-4-are-also-primes-




Question Number 765 by prakash jain last updated on 09/Mar/15
List all primes p for which p+2 and p+4  are also primes.
Listallprimespforwhichp+2andp+4arealsoprimes.
Answered by rishabh last updated on 09/Mar/15
p=3 is the only such number.  Let us assume there is a prime p>3.  Since p is not divisible by 3,     p=3k+1 or 3k+2 where k∈N, k≥1  If p=3k+1 then p+2 is divisible by 3.  If p=3k+2 then p+4 is divisible by 3.
p=3istheonlysuchnumber.Letusassumethereisaprimep>3.Sincepisnotdivisibleby3,p=3k+1or3k+2wherekN,k1Ifp=3k+1thenp+2isdivisibleby3.Ifp=3k+2thenp+4isdivisibleby3.

Leave a Reply

Your email address will not be published. Required fields are marked *