Prime Numbers All
Prime Numbers All
1. BASIC KNOWLEDGE
1. 1. TERMS
Prime number: A prime number is a positive integer greater than 1 and only
divisible by 1 and itself. Another way of saying this is that a prime number is a
positive integer with exactly two factors (1 and itself).
The smallest prime number: 2, which is an even number and the only even
prime number.
Composite number: When a number has more than two factors, the number is
called a composite number.
Relatively prime: If two positive integers have no common factor except 1, the
two positive integers are said to be relatively prime, for example, 4 and 9 are
relatively prime.
Theorem 3 (The square root rule): If a is not divisible by all the prime numbers
less than or equal to a , then a is a prime number.
Example 1. How many prime numbers are there between 51 and 600 ?
(A) 5 (B) 4 (C) 3 (D) 2 (E) 1
Solution: A.
Let the prime number be p.
51 p 600 .
Since 72 = 49 < 51 , p is greater than 7.
45
AMC 8 Preparation Chapter 15 Prime Numbers
Solution: D.
121 (11 11), 123 (divisible by 3), 125 (multiple of 5). The next is 127.
We know that 112 = 121 < 127 < 144 = 122. We only need to test if 127 is
divisible by 11, 7, 5, 3, and 2. We are sure that 127 is neither divisible by 2, nor 3
nor 5. We only need to divide 127 by 7 and 11, respectively.
127 =7 17 + 1
127 = 11 11 + 6
So 127 is the smallest prime number greater than 120.
2 3 5 7
11 13 17 19
23 29
31 37
41 43 47
53 59
61 67
71 73 79
83 89
97
46
AMC 8 Preparation Chapter 15 Prime Numbers
Example 3. Two prime numbers that differ by two are called twin primes. Find
the sum of a pair of twin primes between 60 and 75.
(A) 135 (B) 138 (C) 141 (D) 144 (E) 148
Solution: D.
71 + 73 = 144.
Example 4. What is the sum of the two-digit prime numbers between 10 and 20?
(A) 33 (B) 34 (C) 56 (D) 58 (E) 60
Solution: E.
11 + 13 + 17 + 19 = 60.
If p is a prime number and p = mn, then one of the two numbers m and n must be
1 and another one must be p.
Example 5. Find the value of a positive integer x such that, when 64 is taken
away from it, the results is a square number, and when 25 is added to it, the result
is also a square number.
(A) 1400 (B) 1600 (C) 1980 (D) 2000 (E) 1125
Solution: D.
x 64 n 2
m2 n2 89 (m n)(m n) 89
x 25 m 2
47
AMC 8 Preparation Chapter 15 Prime Numbers
m n 89
m = 45, n = 44.
m n 1
x = 452 – 25 = 2000.
Solution: A.
Since a and b are positive integers, let a3 b2 t 32 t 6 , we get: a t 2 and
b t3 .
Therefore, d a 5 can be written as c 2 t 2 5 or (c t )(c t ) 5
Since 5 is a prime number and c + t > c – t, we have:
ct 5
c = 3, t = 2.
c t 1
b – c = 23 – 3 = 5.
2.2. PROPERTY 2: If the sum of two prime numbers is an odd number, then
one of the two prime numbers must be 2.
Example 7. The sum of two prime numbers is 39. What is their product?
(A) 37 (B) 74 (C) 121 (D) 169 (E) 40
Solution: B.
Since the sum is an odd number, one prime number must be 2. The other one is
then 39 − 2 = 37. The product is 2 37 = 74.
Example 8. The sum of two prime numbers is 49. What is the sum of the
reciprocals of the two prime numbers?
49 1 1
(A) 47 (B) (C) (D) (E) 49
94 47 2
Solution: B.
48
AMC 8 Preparation Chapter 15 Prime Numbers
Solution: A.
Since p, q, and r are all prime numbers, r must be an odd number and one of the
two numbers p and q must be 2.
Since 1 < p < q, p = 2.
Solution: C.
Since the sum of three prime numbers is an odd number, one of the prime
numbers must be 2. Let a b c , we get a = 2 and b + c = 64.
ab + bc + ca = 1071 2b + bc + 2c = 1071 or 2(b + c) + bc = 1071.
bc = 943. Thus abc = 2 943 = 1886.
Solution: B.
We factor n2 − 3n + 2 = (n − 1)(n − 2).
When (n − 1) = 1, n = 2. n2 − 3n + 2 = 0 which is not a prime.
When n − 1 = −1, n = 0 which is not a positive integer.
When (n − 2) = 1, n = 3. n2 − 3n + 2 = 2 which is a prime.
When (n − 2) = −1, n = 1. n2 − 3n + 2 = 0 which is not a prime.
49
AMC 8 Preparation Chapter 15 Prime Numbers
Example 12. The positive integers A, B, A − B, and A + B are all prime numbers.
The sum of these four primes is
(A) even (B) divisible by 3 (C) divisible by 5 (D) divisible by 7
(E) prime
Solution: E.
The numbers A − B and A + B are both odd or both even. However, they are also
both prime, so they must both be odd. Therefore, one of A and B is odd and the
other even. Because A is a prime between A − B and A + B, A must be the odd
prime. Therefore, B = 2, the only even prime. So A − 2, A, and A + 2 are
consecutive odd primes and thus must be 3, 5, and 7. The sum of the four primes
2, 3, 5, and 7 is the prime number 17.
Example 13. The product of three prime numbers is five times the sum of these
prime numbers and it is also divisible by 5. Find the remainder when the sum of
these prime numbers is divided by 11.
(A) 9 (B) 7 (C) 6 (D) 3 (E) 1
Solution: D.
Since the product is divisible by 5, one of these prime numbers must be 5.
Let p and q be the other two prime numbers, we have: 5pq = 5(p + q + 5)
pq – p – q + 1 = 6. (p – 1)(q – 1) = 6 = 2 3 = 1 6.
If p – 1 = 2 and q – 1 = 3, q = 4 is not a prime number which is not possible.
If p – 1 = 1 and q – 1 = 6, p = 2 and q = 7.
Three prime numbers are (2, 5, 7). The sum is 14 and the answer is 3.
p
Example 14. Find if both p and q are prime numbers and 3 p 5q 31.
3q 1
1 1 1 1
(A) or 1 (B) or 2 (C) or 11 (D) or 17 (E) 5
8 7 5 13
Solution: A.
50
AMC 8 Preparation Chapter 15 Prime Numbers
Since 3p + 5q = 31, 3p or 5q must be even since two odd numbers do not sum to
an odd integer.
3. MORE EXAMPLES
Example 15. If m is the greatest prime factor of 57 and n is the greatest prime
factor of 120, what is the value of m + n?
(A) 7 (B) 12 (C) 24 (D) 29 (E) 44
Solution: C.
Since 5 + 7 = 12, 57 is divisible by 3. 57 = 3 19.
120 = 12 10 = 3 4 2 5. The greatest prime factor of 120 is 5.
m + n = 19 + 5 = 24.
Solution: C.
We eliminate (E) since 6 is not a prime. We eliminate (B) since the greatest
common factor of 4 and 7 is not 2. Since the last digit is a divisor of 20, we
eliminate (A) and (D).
51
AMC 8 Preparation Chapter 15 Prime Numbers
Example 17. For three positive prime numbers a, b, and c, ab = 55 and bc = 35.
What is the value of abc?
(A) 175 (B) 605 (C) 165 (D) 385 (E) 1925
Solution: D.
ab = 55 = 5 11. bc = 35 = 5 7.
So a = 11, b = 5, and c = 7 abc = 35 11 = 385.
Example 18. How many of the prime factors of 210 are greater than 2?
(A) One (B) Two (C) Three (D) Four (E) Five
Solution: C.
210 = 2 3 5 7. Only 3, 5, and 7 are greater than 2.
Example 19. What is the product of the prime numbers between 30 and 40?
(A) 1023 (B) 1108 (C) 1147 (D) 1221 (E) 1143
Solution: C.
31 37 = 1147.
Example 20. The difference of two prime numbers is 101. What is the value of
the larger prime number?
(A) 101 (B) 103 (C) 107 (D) 109 (E) 191
Solution: B.
Let the two prime numbers be x and y and x < y.
Since y – x = 101. x must be 2 and y = 103.
Example 21. Two prime numbers p and q satisfy the following conditions: p = m
+ n and q = mn, where both m and n are positive integers. Find the value of pq +
qp.
(A) 11 (B) 13 (C) 15 (D) 17 (E) 19
Solution: D.
Since q is a prime number and q = mn, m or n must be 1.
52
AMC 8 Preparation Chapter 15 Prime Numbers
Solution: B.
Since the sum of three prime numbers is an odd number, one of the prime
numbers must be 2. Let a b c , we get a = 2 and b + c = 66.
ab + bc + ca = 1121 2b + bc + 2c = 1121 or 2(b + c) + bc = 1121.
bc = 989. abc = 2 989 = 1978.
Solution: B.
We factor: a2 – 3a + 2 = (a – 2)(a – 1).
When (a – 2) = 1, a = 3, a2 – 3a + 2 = 2 (a prime number).
When (a – 2) = –1, a = 1, a2 – 3a + 2 = 6, (not a prime number).
When (a – 1) = 1, a = 2, a2 – 3a + 2 = 0 (not a prime number).
When (a – 1) = –1, a = 0 which is not a positive number.
So there is one positive integer a such that a2 – 3a + 2 is a prime number.
Example 24. Find a positive integer such that the sum of the positive integer and
72 is a square number, and the sum of the positive integer and 55 is also a square
number.
(A) 8 (B) 9 (C) 7 (D) 5 (E) 17
Solution: B.
Let x be the positive integer.
x 72 y 2 (1)
x 55 z 2
(2)
53
AMC 8 Preparation Chapter 15 Prime Numbers
(2) – (1):
z 2 y 2 17 ( z y)(z y) 17
Since z – y < z + y, we have:
z – y =1
z y 17
Solving we get: z = 9, y = 8, and x = 9.
Solution: C.
We factor: n2 − 8n + 15 = (n − 3)(n − 5).
When (n − 3) = 1, n = 4. n2 − 8n + 15 = −1 (not a prime).
When (n − 3) = − 1, n = 2. n2 − 8n + 15 = 3 (a prime).
When (n − 5) = 1, n = 6. n2 − 8n + 15 = 3 ( a prime).
When (n −5) = − 1, n = 4. n2 − 8n + 15 = −1 (not a prime).
54
AMC 8 Preparation Chapter 15 Prime Numbers
4. PROBLEMS
Problem 1. The prime number p is a factor of 70 and is also a factor of 105. How
many possible values are there for p ?
(A) One (B) Two (C) Three (D) Four (E) Five
Problem 2. Which of the following is NOT an element of both the set of positive
odd integers and the set of prime numbers?
(A) 7 (B) 17 (C) 37 (D) 47 (E) 57
Problem 3. How many integers greater than 20 and less than 30 are each the
product of exactly two prime numbers?
(A) 3 (B) 4 (C) 5 (D) 6 (E) 7
Problem 5. The sum of three consecutive primes is 159. What is the largest of the
three primes?
(A) 53 (B) 57 (C) 59 (D) 61 (E) 47
Problem 6. How many pairs of distinct prime numbers have a sum of 22?
(A) 1 (B) 2 (C) 3 (D) 4 (E) 5
Problem 7. The sum of three prime numbers is 38. Find the largest of the primes.
(A) 17 (B) 19 (C) 37 (D) 31 (E) 41
Problem 8. The Goldbach Conjecture, which has not been proven, states that
every even integer greater than 2 is expressible as the sum of two prime numbers.
In how many ways can the number 36 be expressed as the sum of two primes?
(A) 4 (B) 2 (C) 3 (D) 1 (E) 5
55
AMC 8 Preparation Chapter 15 Prime Numbers
Problem 10. How many ordered triples of primes (a, b, c) exist such that a + b +
c = 7?
(A) 1 (B) 2 (C) 3 (D) 4 (E) 5
Problem 11. How many ordered pairs of primes (a, b) satisfy a + b = 20?
(A) 1 (B) 4 (C) 3 (D) 2 (E) 5
Problem 12. How many ordered triples of primes (a, b, c) exist such that
a b c and a + b + c = 26?
(A) 1 (B) 2 (C) 3 (D) 4 (E) 5
Problem 14. The sum of three prime numbers is 40. Find the largest possible
product of the two of the three prime numbers.
(A) 144 (B) 221 (C) 323 (D) 217 (E) 361
Problem 15. How many ordered triples of three prime numbers exist for which
the sum of the members of the triple is 24?
(A) 6 (B) 15 (C) 12 (D) 3 (E) 5
Problem 16. If the sum of the square of a prime number and an odd positive
integer is 125, find the odd positive integer.
(A) 121 (B) 131 (C) 161 (D) 125 (E) 177
Problem 18. A group of 25 pennies is arranged into three piles such that each pile
contains a different prime number of pennies. What is the greatest number of
pennies possible in any of the three piles?
(A) 13 (B) 15 (C) 11 (D) 17 (E) 19
56
AMC 8 Preparation Chapter 15 Prime Numbers
Problem 19. Find the sum of all integral values of x such that 8x2 + 2x − 55 is
prime.
(A) 0 (B) 1 (C) 2 (D) 14 (E) 51
57
AMC 8 Preparation Chapter 15 Prime Numbers
5. SOLUTIONS
Problem 1. Solution: B.
70 = 7 5 2. 105 = 7 5 3. There are two values: 7 and 5,
Problem 2. Solution: E.
The sum of the digits of 57 is 5 + 7 = 12. So 57 is divisible by 3. 57 = 3 17.
Problem 3. Solution: B.
21 = 3 7; 22 = 2 11; 25 = 5 5; and 26 = 2 13.
Problem 4. Solution: A.
2 + 3 + 5 + 7 + 11 + 13 + 17 + 19 + 23 + 29 = 129.
Problem 5. Solution: C.
159/3 = 53 which is a prime number. So we know that the other two prime
numbers are 47 and 59.
Problem 6. Solution: B.
22 = 2 + 20 = 3 + 19 = 5 + 17 = 7 + 15 = 11 + 11
Only (3, 19) and (5, 17) are pairs of distinct prime.
Problem 7. Solution: D.
Since the sum is even, there must be a 2 in them. The sum of the other two prime
numbers is 36.
36 = 3+ 33 = 5 + 31 = 7 + 29 = 11 + 25 = 13 + 23 = 17 + 19.
The pairs of prime numbers are ( 5, 31), (7, 29), (13, 23), and (17, 19). The largest
one is 31.
Problem 8. Solution: A.
36 = 5 + 31 = 7 + 29 = 13 + 23 = 17 + 19.
58
AMC 8 Preparation Chapter 15 Prime Numbers
Problem 9. Solution: A.
300 x 700 18 x 26 . We have two prime numbers: 19 and 23.
59
AMC 8 Preparation Chapter 15 Prime Numbers
6 triplets (2, 3, 19), 3 triplets (2, 11, 11), and 6 triplets (2, 5, 17).
Problem 18. D.
25 = 3 + 5 + 17 = 5 + 7 + 13 = 3 + 11 + 11 (not all different) = 3 + 3 + 19 (not all
different) = 7 + 7 + 11 (not all different). The greatest number is 17.
60