yosita18 wrote:
Abhishek:
Nice analogy.
Please let me know at one time, we say that
Prime Number > 3 can be represented as "6n+1" or "6n-1".
Where,
The 6N+1 or 6N-1 rule is basically every odd number that is not divisible by three,
so it narrows the search a little.
Then,
Why do we represent Prime Number as "6n+1" or "6n-3"?
Why are we representing "6n -1" at one place and "6n-3" at another place?
Hope I am clear in my question.
Thanks in advance.
Regards,
Yosita
Dear Yosita,
I'm happy to respond.
My friend, the
6n + 3 is a typo, a misprint. As I am sure you appreciate, we all make mistakes. If n is a positive integer, then any number of the form
(6n + 3) = 3(2n + 1) would automatically be divisible by 3 and therefore NEVER would be prime. Beyond the single digits primes (for which you should need no rule!), all prime numbers are of the forms
(6n + 1) or
(6n - 1).
Not all numbers of that form are prime, but all primes are of that form.
Actually, I think this formula rule is almost completely useless. Suppose we want to find the prime numbers between 150 and 160. First of all, we would automatically eliminate all the even numbers and multiples of 5, which leaves us with {151, 153, 157, 159}. Then we eliminate the multiples of three, 153 and 159, so that we are left with {151, 157}. These two are the remaining candidates for prime numbers, because they are odd numbers not divisible by three. That's all the formula thing does for you: it gets you odd numbers not divisible by three, but we can get to that point much more easily without touching the formula. Now, are those two number prime? Look at the multiples of the next few prime numbers.
We know 14 is a multiple of 7, so 140 has to be a multiple of 7 as well. Thus, 140 + 7 = 147, 147 + 7 = 154, and 154 + 7 = 161 are multiples of 7. Thus, 151 and 157 are not multiple of 7 or anything less than 7.
We know 110 is a multiple of 11, so we add 11 to get more: 121, 132, 143, 154, 165, etc. Thus, 151 and 157 are not multiples of 11 or anything less than 11.
We know 130 is a multiple of 13, so we add 13 to get more: 143, 156, 169, etc. Thus, 151 and 157 are not multiples of 13 or anything less than 13.
Well, we only need check up the square root of a number. Since 13^2 = 169, we know the square roots of 151 and 157 are less than 13. If those two numbers are not divisible by anything less than 13, they are are not divisible by anything greater than 13. Thus, 151 and 157 are prime numbers.
It's much easier to ignore that (6n + 1) or (6n - 1) rule entirely and just check the numbers direct. That formula simple gets in the way.
Does all this make sense?
Mike