Primes

Prime: Any positive integer with exactly two factors. 0 and 1 are neither prime or composite.
Composite: Any positive integer with more than two factors.

How to judge if a integer number n is a prime number?

  1. Number n should be odd. Number n can not be divided by 3. Otherwise it is not prime.
    OR: Is this number in 6n+1 or 6n+5 format? If No, n is not a prime. If Yes, n MAY BE a prime.
  2. Calculate square root of this number and floor it to integer m.
  3. Try to divide all integer from 7 to m, if n can be divided by one of these integers, n is Not a prime number. If n can Not be divided by all of these integers, n is a prime number.

Is there is a formula or better way to judge if a number is a prime number? No

Prime numbers under 100

2357111317
19232931374143
47535961677173
79838997

Why do prime numbers (except 2 and 3) always satisfy the 6n+1 and 6n-1 (or 6n+5) conditions? Is there mathematical logic behind it?

For any value non-negative integer value of n, make a list of positive values for each of the following values:

  • 6n – 1:
  • 6n + 0:
  • 6n + 1:
  • 6n + 2:
  • 6n + 3:
  • 6n + 4:
  • 6n + 5:

Please make your list, and circle the prime numbers:

6n – 1: → 5, 11, 17, 23, 29, 35, 41, 47 …
6n + 0: → 6, 12, 18, 24, 30, 36, 42, 48 …
6n + 1: → 1, 7, 13, 19, 25, 31, 37, 43 …
6n + 2: → 2, 8, 14, 20, 26, 32, 38, 44 …
6n + 3: → 3, 9, 15, 21, 27, 33, 39, 45 …
6n + 4: → 4, 10, 16, 22, 28, 34, 40, 46 …
6n + 5: → 5, 11, 17, 23, 29, 35, 41, 47 …

What can you observe?
The 6n-1 list is identical to the 6n+5 list, we can use either 6n-1 list or 6n+5 list.

Can you look at these lists of numbers and explain why:

  • All prime numbers greater than 3 are always of the form
    • 6n–1 or 6n+1 ?

Can you also logically explain why the following statements are false?

  • All numbers of the form 6n+1 are prime? (false!)
  • All numbers of the form 6n–1 are prime? (false!)

Exercise: to judge if following numbers are prime numbers

143
167
169
177
187

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

2021 Gause 7 & 8 Contest Preparation2021 Gause 7 & 8 Contest Preparation

http://mathbitsnotebook.com/JuniorMath/RatioProportion/RPProportions.html Arithmetic Series and Sums https://mathbitsnotebook.com/Algebra2/Sequences/SSGauss.html https://www.mathsisfun.com/algebra/sequences-sums-arithmetic.html https://www.mathsisfun.com/algebra/sequences-sums-geometric.html#:~:text=1%2C%202%2C%204%2C%208,the%20previous%20term%20by%202. Exercises: Six years ago, I was 6 years old. Six year form now on, I will be ? years old? 2021 –

2019年 AMC8 真题解析(英文解析+中文解析)2019年 AMC8 真题解析(英文解析+中文解析)

Modulus Operator – CS101 – Udacity https://www.calculatorsoup.com/calculators/physics/displacement-calculator-svt.php https://mathbitsnotebook.com/Algebra1/LinearEquations/LEGraphiLines.html https://mathbitsnotebook.com/Algebra1/FunctionGraphs/FNGTypeLinearQuad.html http://www.mathbitsnotebook.com/Algebra1/LinearEquations/LEoutline.html Problem 1 Answer: D Solution: We maximize the number of sandwiches Mike and Ike can buy by finding the lowest