Verifying Primes
Let be a prime and be two integers with the following properties:
- and have no prime factor in common, that is .
- The product is divisible by every prime less than q.
It can be shown that, given these conditions, any sum and any difference has to be a prime number. Thus you can verify that a number is prime by showing that either or for some fulfilling the conditions listed above.
Let be the smallest possible value of in any sum and any difference , that verifies being prime. Examples:
, since .
, since is the associated sum with the smallest possible .
since is the associated difference with the smallest possible .
Let be the sum of for all primes . For example, and .
Find .
检验素数
取素数及整数满足以下性质:
- 和没有相同的质因数,也就是说。
- 乘积能被所有小于的素数整除。
可以证明,在上述条件下,满足的两数之和,以及满足的两数之差,一定是素数。因此你可以寻找满足上述条件的的,使得能写成或的形式,以此来验证是素数。
对于任意素数,记为使得能表达为两数之和或两数之差的最小整数。例如:
,因为。
,因为能表达为两数之和且最小。
,因为能表达为两数之差且最小。
记为所有素数对应的之和。例如,,。
求。
Gitalking ...