Why does (p*q+2)-(p+q) always give a prime number?

  • Thread starter Thread starter John Harris
  • Start date Start date
  • Tags Tags
    Euler Prime
Click For Summary
SUMMARY

The expression (p*q+2)-(p+q) does not consistently yield a prime number when both p and q are prime. A counterexample provided is (17*47+2)-(17+47)=737, which factors into 11*67, demonstrating that the formula fails. Additionally, the discussion highlights that the expression fails when p and q differ by 2, as shown by attempts with pairs like (3, 5) and (7, 13). The conclusion is that this expression cannot be relied upon to generate prime numbers.

PREREQUISITES
  • Understanding of prime numbers and their properties
  • Familiarity with basic algebraic expressions
  • Knowledge of counterexamples in mathematical proofs
  • Basic understanding of Euler's formula
NEXT STEPS
  • Research the properties of prime numbers and their distributions
  • Explore Euler's formula and its applications in number theory
  • Study mathematical proofs and the importance of counterexamples
  • Investigate other algebraic expressions that generate prime numbers
USEFUL FOR

Mathematics students, educators, and anyone interested in number theory and the properties of prime numbers.

John Harris
Messages
19
Reaction score
1

Homework Statement


Why does (p*q+2)-(p+q) always give a prime number when p and q are prime? Is there a similar formula that would prove this

Homework Equations


That's what I'm looking for. It might have something to do with Eulers formula

The Attempt at a Solution


I tried to find online a formula that would justify this, but was unable to find anything.
 
Physics news on Phys.org
John Harris said:
Why does (p*q+2)-(p+q) always give a prime number when p and q are prime?
It doesn't.

The first example I picked was a counter example:
(17*47+2)-(17+47)=737=11*67
 
  • Like
Likes   Reactions: John Harris
Nathanael said:
It doesn't.

The first example I picked was a counter example:
(17*47+2)-(17+47)=737=11*67
Oh you're right. I should have tried more examples. Thank you
 
John Harris said:
Oh you're right. I should have tried more examples. Thank you
You couldn't have tried many. It fails whenever p and q differ by 2.
 
haruspex said:
You couldn't have tried many. It fails whenever p and q differ by 2.
I tried 7 and 13
 
John Harris said:
I tried 7 and 13
Only that pair?! Try 3 and 5, 5 and 7, 11 and 13,...
 
John Harris said:
I tried 7 and 13
And you think one example is enough to generalize from ? Probably not a great idea.
 
Gez no I tried 3 examples 3,7 1,3 7,13, and it would have made sense with the problem I'm doing.
 
John Harris said:
Gez no I tried 3 examples 3,7 1,3 7,13, and it would have made sense with the problem I'm doing.
Well can you see how your statement "I tried 7 and 13" sounds a LOT like "I tried one combination" ? Glad to hear you already realize that just one is not a good idea.
 
  • #10
John Harris said:
Gez no I tried 3 examples 3,7 1,3 7,13, and it would have made sense with the problem I'm doing.
Your second example isn't valid because 1 isn't a prime number.
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
1
Views
2K
Replies
10
Views
2K
  • · Replies 13 ·
Replies
13
Views
3K
Replies
9
Views
2K
  • · Replies 31 ·
2
Replies
31
Views
2K
  • · Replies 5 ·
Replies
5
Views
5K
  • · Replies 11 ·
Replies
11
Views
2K