两个质数的和为奇数,为什么必有一个为2?

  • 时间:2020-04-07 14:29:42
  • 分类:数学世界
  • 阅读:127 次

我们学过的质数大多为奇数,只有一个质数2例外。2是质数中最小的一个,而且2是唯一的偶质数。因为其它大于2的偶数,除了有1和该数本身两个因数外,至少还有一个因数2,这样的数都是合数。

我们知道一个奇数与一个偶数的和一定是奇数。如果两个质数和为奇数,必有一个是偶质数,而2是唯一的偶质数。所以两个质数的和为奇数,必有一个为2.知道这一结论对我们解数学题是有帮助的。例如:

若两个质数的和为99,求这两个质数的积。

因为99为奇数,所以两个质数必定一奇一偶,而且其中的一个质数是2,另一个质数就是99-2=97,所求的两个质数的积为97×2=194.

如果两个质数的积为偶数,或者三个质数的和为偶数,你能得出什么结论?

推荐阅读:
Several Algorithms to Compute the Score of Parentheses  Two Pointer Algorithm to Find Maximum Two Sum Less Than K  Algorithm to Delete a Character to Make a Valid Palindrome  The Dynamic Programming Algorithm to Compute the Minimum Falling  Javascript’s toFixed Implementation without Rounding  Algorithm to Count the Minimum Add to Make Parentheses Valid  WXT pre-sale is now live – is it worth it?  How to Serialize and Deserialize Binary Tree?  How to Construct Binary Tree from String (Binary Tree Deserializ  Activist’s Mother Faces Prison After One-Word Facebook Reply 
评论列表
添加评论