プリンキピア

第3章実数の体系と数論

Prime and Composite Numbers素数と合成数

Sometimes, a natural number has only two unique divisors, 1 and itself. For instance, 7 and 19 are prime. In other words, there is no way to divide a prime number into groups with an equal number of things, unless there is only one group, or those groups have one item per group. Other natural numbers have more than two unique divisors, such as 4, or 26. These numbers are called composite. The number 1 is special; it is neither prime nor composite.
英語のヒント
自然数には、1とそれ自身という2つの異なる約数しか持たないものがある。たとえば7や19は素数である。言いかえると、素数は、グループが1つだけの場合か、各グループに1つずつしかない場合を除いて、同じ個数のものを持つグループに分ける方法がない。ほかの自然数には、4や26のように、異なる約数が3つ以上ある。これらの数は合成数と呼ばれる。数1は特別で、素数でも合成数でもない。
To determine if a number is prime or composite, you have to determine if the number has any divisors other than 1 and itself. The divisibility rules are useful here, and can quickly show you if a number has a divisor on that list.
英語のヒント
ある数が素数か合成数かを判定するには、その数に1とそれ自身以外の約数があるかどうかを判定しなければならない。ここでは割り切れるかの判定法が役立ち、その数に表にある約数があるかどうかをすぐに示してくれる。
However, if none of those divide the number, you still have to check all other possible prime divisors. What are the prime numbers that are possibly divisors of the number you are checking? You need only check the prime numbers up to the square root of the number in question. For instance, if you want to know if 2,117 is prime, you need to determine if any primes up to the square root of 2,117 (which is 46.0 when rounded to one decimal place) divide 2,117. If any of those primes are divisors of the number in question, then the number is composite. If none of those primes work, then the number is itself prime.
英語のヒント
しかし、そのどれでも割り切れなくても、ほかのありうる素数の約数をすべて調べなければならない。調べている数の約数になりうる素数はどれか。問題の数の平方根までの素数だけを調べればよい。たとえば、2,117が素数かどうかを知りたいなら、2,117の平方根(小数第1位まで四捨五入すると46.0)までの素数のどれかが2,117を割り切るかどうかを判定する必要がある。それらの素数のどれかが問題の数の約数ならば、その数は合成数である。それらの素数がどれも当てはまらなければ、その数そのものが素数である。
We can check divisibility with whatever tool we wish. Divisibility rules are quick for some prime divisors (2 and 5 come to mind) but aren't quick for other values (like 11). In place of divisibility rules, we could just use a calculator. If the prime number divides the number evenly (that is, there is no decimal or fractional part), then the number is divisible by that prime. Table 3.1 is a quick list of the prime numbers up to 50. There are 15 prime numbers less than 50.
英語のヒント
割り切れるかは、好きな道具で調べてよい。割り切れるかの判定法は、いくつかの素数の約数(2と5が思い浮かぶ)にはすぐ使えるが、ほかの値(11など)にはすぐには使えない。判定法の代わりに、電卓を使うだけでもよい。その素数が数を割り切る(つまり小数の部分や分数の部分がない)ならば、その数はその素数で割り切れる。表3.1は、50までの素数の早見表である。50より小さい素数は15個ある。
Table 3.1表3.1
Prime Numbers Less than 50
英語のヒント
50より小さい素数
235711
1317192329
3137414347
Example 3.7例題 3.7

Determining If a Number Is Prime or Composite数が素数か合成数かを判定する

Determine if 2,117 is prime or composite.
英語のヒント
2,117が素数か合成数かを判定せよ。
Solution解答
The square root of 2,117 is 46.0 (rounded to one decimal place). So, we need to check if 2,117 is divisible by any prime up to 46.
英語のヒント
2,117の平方根は46.0(小数第1位まで四捨五入)である。よって、2,117が46までのどれかの素数で割り切れるかを調べる必要がある。
Step 1: First we’ll use the rules of divisibility we learned earlier:
英語のヒント
手順1:まず、先に学んだ割り切れるかの判定法を使う。
  • We can tell 2,117 is not divisible by 2, as the last digit isn't even.
    英語のヒント
    一の位の数字が偶数ではないので、2,117が2で割り切れないことがわかる。
  • 2,117 is not divisible by 5 (the last digit isn't 0 or 5).
    英語のヒント
    2,117は5で割り切れない(一の位の数字が0でも5でもない)。
  • Add the digits of 2,117 to get 11, which is not divisible by 3. So, 2,117 is also not divisible by 3.
    英語のヒント
    2,117の各位の数字を足すと11になり、これは3で割り切れない。よって、2,117も3で割り切れない。
Step 2: Now we repeat the process for all the primes up to 46.
英語のヒント
手順2:次に、46までのすべての素数について、この作業を繰り返す。
Using a calculator, we find that 2,117 divided by the prime numbers 7, 11, 13, 17, 19, and 23 results in a remainder, a decimal part. So, we know that 2,117 is not divisible by these prime numbers. (You should check these results yourself.)
英語のヒント
電卓を使うと、2,117を素数7、11、13、17、19、23で割ると余り、つまり小数の部分が出ることがわかる。よって、2,117はこれらの素数で割り切れないことがわかる。(これらの結果は自分で確かめること。)
Moving on, we check the next prime: 29. Using the calculator to divide 2,117 by 29 results in 73. Since there is no decimal part, 2,117 is divisible by 29.
英語のヒント
先へ進み、次の素数29を調べる。電卓で2,117を29で割ると73になる。小数の部分がないので、2,117は29で割り切れる。
This means that 2,117 is not a prime number, but rather, a composite number. Writing 2,117 as the product of 29 and another natural number, 2,117=29×73.
英語のヒント
つまり、2,117は素数ではなく、合成数である。2,117を29と別の自然数の積として書くと、2,117=29×73
Example 3.8例題 3.8

Determining if a Number Is Prime or Composite数が素数か合成数かを判定する

Determine if 423 is prime or composite.
英語のヒント
423が素数か合成数かを判定せよ。
Solution解答
The square root of 423 is 20.57 (rounded to two decimal places). So, we need to check if 423 is divisible by any prime up to 20.
英語のヒント
423の平方根は20.57(小数第2位まで四捨五入)である。よって、423が20までのどれかの素数で割り切れるかを調べる必要がある。
Step 1: Check 2. We can tell 423 is not divisible by 2, as the last digit isn't even.
英語のヒント
手順1:2を調べる。一の位の数字が偶数ではないので、423が2で割り切れないことがわかる。
Step 2: Check 5. It is not divisible by 5 (the last digit isn't 0 or 5).
英語のヒント
手順2:5を調べる。5では割り切れない(一の位の数字が0でも5でもない)。
Step 3: Check 3. To check if 423 is divisible by 3, we use the divisibility rule for 3. When we take the sum of the digits of 423, the result is 9. Since 9 is divisible by 3, so is 423.
英語のヒント
手順3:3を調べる。423が3で割り切れるかを調べるには、3で割り切れる判定法を使う。423の各位の数字の和をとると、結果は9である。9は3で割り切れるので、423も3で割り切れる。
Since 423 is divisible by 3, then 423 is a composite number. Writing 423 as the product of 3 and another natural number, 423=3×141.
英語のヒント
423は3で割り切れるので、423は合成数である。423を3と別の自然数の積として書くと、423=3×141
Example 3.9例題 3.9

Determining if a Number Is Prime or Composite数が素数か合成数かを判定する

Determine if 1,034 is prime or composite
英語のヒント
1,034が素数か合成数かを判定せよ
Solution解答
A quick inspection of 1,034 shows it is divisible by 2 since the last digit is even, and so 1,034 is a composite number.
英語のヒント
1,034をざっと見ると、一の位の数字が偶数なので2で割り切れることがわかる。よって、1,034は合成数である。
Example 3.10例題 3.10

Determining if a Number Is Prime or Composite数が素数か合成数かを判定する

Determine if 2,917 is prime or composite.
英語のヒント
2,917が素数か合成数かを判定せよ。
Solution解答
The square root of 2,917 is 50.01 (rounded to two decimal places). So, we need to check if 2,917 is divisible by any prime up to 50.
英語のヒント
2,917の平方根は50.01(小数第2位まで四捨五入)である。よって、2,917が50までのどれかの素数で割り切れるかを調べる必要がある。
Step 1: Check 2. We can tell 2,917 is not divisible by 2, as the last digit isn't even.
英語のヒント
手順1:2を調べる。一の位の数字が偶数ではないので、2,917が2で割り切れないことがわかる。
Step 2: Check 5. It is it divisible by 5 (the last digit isn't 0 or 5).
英語のヒント
手順2:5を調べる。それは5で割り切れるか(一の位の数字は0でも5でもない)。
Step 3: Check 3. Using the divisibility rule for 3, we take the sum of the digits of 2,917, which is 19. Since 19 is not divisible by 3, neither is 2,917.
英語のヒント
手順3:3を調べる。3で割り切れる判定法を使って2,917の各位の数字の和をとると、19である。19は3で割り切れないので、2,917も割り切れない。
Step 4: Check the rest of the primes up to 50 using a calculator. When 2,917 is divided by every prime number up to 50, the result has a decimal part.
英語のヒント
手順4:電卓を使って、50までの残りの素数を調べる。2,917を50までのすべての素数で割ると、結果には小数の部分がある。
Since no prime up to 50 divides 2,917, it is a prime number.
英語のヒント
50までのどの素数も2,917を割り切らないので、2,917は素数である。