两素数之和为偶数的概率
Prime Sum
题目详情
从 1 到 20(含)之间的素数中,等概率选取两个不同的素数。求它们的和为偶数的概率。
Two distinct prime integers between and , inclusive, are selected uniformly at random. Find the probability their sum is even.
解析
1..20 的素数为 共 8 个,其中只有 2 是偶数。
两数之和为偶数当且仅当两数同奇偶。由于只能有一个偶素数 2,而题目要求两数不同,因此不可能选到两个偶数。
所以必须选到两个奇素数(即不选 2)。
概率为
Original Explanation
The prime integers at most are and , which yields total integers. There are ways to pick integers ordered for the sum. Our sum is even exactly when we don't select . Therefore, there are ways to pick two prime integers that aren't . Therefore, our probability is