Find all pairs of primes ## p ## and ## q ## satisfying ## p-q=3 ##.

  • Thread starter Math100
  • Start date
  • Tags
    Primes
In summary, a prime number is a positive integer that is only divisible by 1 and itself. To find all pairs of primes that satisfy p-q=3, one can identify twin primes, which are prime numbers that are 3 apart from each other. There is no known formula for finding twin primes, but some techniques such as checking numbers that end in 1, 3, 7, or 9 and using computer algorithms can help. To prove that all pairs of primes satisfying p-q=3 are indeed twin primes, one can use a proof by contradiction. Twin primes have been a topic of interest in mathematics for centuries and have practical applications in cryptography, making them important in the field of mathematics.
  • #1
Math100
802
222
Homework Statement
Find all pairs of primes ## p ## and ## q ## satisfying ## p-q=3 ##.
Relevant Equations
None.
Proof:

Let ## p ## and ## q ## be primes such that ## p-q=3 ##.
Now we consider two cases.
Case #1: Suppose ## p ## is an even prime.
Then ## p=2 ##, because ## 2 ## is the only even prime.
Thus ## 2-q=3 ##, so ## q=-1 ##,
which contradicts the fact that ## q ## is prime.
Case #2: Suppose ## p ## is an odd prime.
Then ## p=2k+1 ## for some ## k\in\mathbb{N} ##.
Thus ## 2k+1=q+3 ##
## q=2k+1-3 ##
## =2k-2 ##
## =2(k-1) ##.
This means ## q ## is an even prime.
Now we have ## p-2=3 ##, so ## p=5 ##.
Therefore, the pair of primes ## p ## and ## q ## satisfying ## p-q=3 ## is ## (p, q)=(5, 2) ##.
 
Physics news on Phys.org
  • #2
Math100 said:
Homework Statement:: Find all pairs of primes ## p ## and ## q ## satisfying ## p-q=3 ##.
Relevant Equations:: None.

Proof:

Let ## p ## and ## q ## be primes such that ## p-q=3 ##.
Now we consider two cases.
Case #1: Suppose ## p ## is an even prime.
This is much more general than it needs to be. The only even prime is 2, so the only primes that satisfy this case are q = 2 and p = 5.
Better:
## p-q=3 \Rightarrow p = q + 3##
By inspection it can be seen that q = 2 and p = 5 are two primes that satisfy the given equation.

Now suppose that q is prime with q > 2.
Necessarily q is odd, with q = 2n + 1 for some integer n.
Then p = q + 3 = 2n + 1 + 3 = 2n + 4 = 2(n + 2), which is an even integer, this not a prime.
##\Rightarrow \Leftarrow## Note that a pair of arrows that butt heads are often used to indicate a contradiction.
Therefore, the only primes that differ by 3 are 2 and 5.
Math100 said:
Then ## p=2 ##, because ## 2 ## is the only even prime.
Thus ## 2-q=3 ##, so ## q=-1 ##,
which contradicts the fact that ## q ## is prime.
Case #2: Suppose ## p ## is an odd prime.
Then ## p=2k+1 ## for some ## k\in\mathbb{N} ##.
Thus ## 2k+1=q+3 ##
## q=2k+1-3 ##
## =2k-2 ##
## =2(k-1) ##.
This means ## q ## is an even prime.
Now we have ## p-2=3 ##, so ## p=5 ##.
Therefore, the pair of primes ## p ## and ## q ## satisfying ## p-q=3 ## is ## (p, q)=(5, 2) ##.
 
  • Like
Likes pbuk and Math100
  • #3
If ## p - q = 3 ## then ## p ## and ## q ## have opposite parity.
The only even prime is ## 2 ## so either ## p = 2 ## or ## q = 2 ##.
## p = 2 \implies q = -1 ## which is not a solution.
## q = 2 \implies p = 5 ## which is therefore the only solution.
 
  • Like
Likes Mark44

FAQ: Find all pairs of primes ## p ## and ## q ## satisfying ## p-q=3 ##.

What is the definition of a prime number?

A prime number is a positive integer that is only divisible by 1 and itself.

How can I find all pairs of primes satisfying p-q=3?

One way to find all pairs of primes satisfying p-q=3 is to start with the first prime number, 2, and then add 3 to it to get the next prime number. Continue this process until you reach the desired pair of primes. For example, starting with 2, you would add 3 to get 5, then add 3 again to get 8, which is not a prime number. So, the pair of primes satisfying p-q=3 is (2,5).

Are there any other methods for finding pairs of primes satisfying p-q=3?

Yes, there are other methods for finding pairs of primes satisfying p-q=3. One method is to use a prime number generator, which is a computer program that can generate a list of prime numbers. You can then search through the list for pairs of primes that have a difference of 3.

Are there any patterns or rules for pairs of primes satisfying p-q=3?

Yes, there are some patterns and rules that can help identify pairs of primes satisfying p-q=3. For example, the difference between two consecutive prime numbers is often a prime number itself. So, if you find a pair of primes with a difference of 3, it is likely that they are consecutive primes.

Can I use the p-q=3 rule to find other pairs of primes with a specific difference?

Yes, you can use the p-q=3 rule to find other pairs of primes with a specific difference. However, the difference must also be a prime number in order for the pair to satisfy the rule. For example, if you want to find pairs of primes with a difference of 5, you would need to find two consecutive prime numbers that are 5 apart, such as (11,16) or (29,34).

Back
Top